mirror of
https://github.com/djohnlewis/stackdump
synced 2024-12-04 23:17:37 +00:00
Added StackExchange question and user URLs to pages as a tooltip to comply with attribution requirements.
Attribution requirements actually state that hyperlinked URLs should be used, but they would be rather useless in this app so this is an alternative.
This commit is contained in:
parent
e4b2ee80a0
commit
36a605711e
@ -4,7 +4,13 @@
|
||||
<p class="user-name"><em title="This user account has since been deleted from the site.">Anonymous User</em></p>
|
||||
{% else %}
|
||||
<p class="user-rep">{{ user.reputation }}</p>
|
||||
<p class="user-name">{{ user.displayName }}</p>
|
||||
<p class="user-name">
|
||||
{% if user.site.base_url %}
|
||||
<span title="StackExchange user profile URL: http://{{ user.site.base_url }}/users/{{ user.sourceId }}">{{ user.displayName }}</span>
|
||||
{% else %}
|
||||
{{ user.displayName }}
|
||||
{% endif %}
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
@ -13,8 +19,12 @@
|
||||
{% if user == None %}
|
||||
<em title="This user account has since been deleted from the site.">Anonymous User</em>
|
||||
{% else %}
|
||||
{% if user.site.base_url %}
|
||||
<span title="StackExchange user profile URL: http://{{ user.site.base_url }}/users/{{ user.sourceId }}">{{ user.displayName }}</span>
|
||||
{% else %}
|
||||
{{ user.displayName }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro render_comments(p, default_comments_max) %}
|
||||
|
@ -22,7 +22,13 @@
|
||||
</div>
|
||||
<div class="row question">
|
||||
<div class="span16">
|
||||
<h1>{{ r.question.title }}</h1>
|
||||
<h1>
|
||||
{% if site.base_url %}
|
||||
<span title="StackExchange question URL: http://{{ site.base_url }}/questions/{{ r.question.id }}">{{ r.question.title }}</span>
|
||||
{% else %}
|
||||
{{ r.question.title }}
|
||||
{% endif %}
|
||||
</h1>
|
||||
<div class="post-stats-vertical">
|
||||
<div class="post-stat">
|
||||
<p class="post-stat-value {% if r.question.score < 0 %}post-stat-value-poor{% endif %}">
|
||||
|
Loading…
Reference in New Issue
Block a user