Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
837bcfd6
Commit
837bcfd6
authored
May 24, 2019
by
Okhin
Browse files
Upgrading the template to add a mailto: link for the person who edited the article
parent
cef50904
Pipeline
#2620
passed with stages
in 3 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/rp/models.py
View file @
837bcfd6
...
...
@@ -104,7 +104,7 @@ class Article(models.Model):
#: If the article is quoting something LQDN said or wrote
quote
=
models
.
BooleanField
(
_
(
"Article directly quotes us"
),
default
=
False
)
default
=
False
)
#: If the article speaks about something LQDN did or wrote
speak
=
models
.
BooleanField
(
_
(
"Article speaks of us"
),
default
=
False
)
...
...
apps/rp/templates/rp/article_detail.html
View file @
837bcfd6
...
...
@@ -60,6 +60,10 @@
<span
class=
"badge badge-info ml-1"
><span
class=
"glyphicon glyphicon-bullhorn"
aria-label=
"{{ _("
Speaks
about
us
")
}}"
></span>
{% endif %}
<h4>
{{ _("Article created by:") }}
<em>
{{ article.created_by }}
</em></h4>
<p>
<a
target=
"mailto:{{ article.created_by.user.email }}"
><span
class=
"glyphicon glyphicon-envelope"
aria-label=
"{{ _("
Contact
this
user
by
email
")}}"
></span>
</p>
<p>
{{object.extracts |markdown}}
</p>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment