Enable all-snipts-on-page for certain users' exports.
parent
9a3f641453
commit
9828c47783
|
@ -21,23 +21,41 @@
|
||||||
{% if request.user.profile.list_view == 'C' %}
|
{% if request.user.profile.list_view == 'C' %}
|
||||||
ng-cloak ng-show="$root.account.id"
|
ng-cloak ng-show="$root.account.id"
|
||||||
{% endif %}>
|
{% endif %}>
|
||||||
{% autopaginate snipts 10 %}
|
{% if request.user.username == user.username and user.username in users_for_full_page %}
|
||||||
{% for snipt in snipts %}
|
{% for snipt in snipts %}
|
||||||
{% include "snipts/snipt-list.html" %}
|
{% include "snipts/snipt-list.html" %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<div class="empty-snipts">
|
<div class="empty-snipts">
|
||||||
{% if request.user == user and not request.user.is_active %}
|
{% if request.user == user and not request.user.is_active %}
|
||||||
Welcome! Please <a target="_self" href="/account/activate/">activate your account</a> to create your first snipt.
|
Welcome! Please <a target="_self" href="/account/activate/">activate your account</a> to create your first snipt.
|
||||||
{% else %}
|
|
||||||
{% if request.user == user %}
|
|
||||||
Welcome! Create your first snipt by clicking "Add Snipt" above.
|
|
||||||
{% else %}
|
{% else %}
|
||||||
No snipts to show here. Sorry!
|
{% if request.user == user %}
|
||||||
|
Welcome! Create your first snipt by clicking "Add Snipt" above.
|
||||||
|
{% else %}
|
||||||
|
No snipts to show here. Sorry!
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
</div>
|
||||||
</div>
|
{% endfor %}
|
||||||
{% endfor %}
|
{% else %}
|
||||||
{% paginate %}
|
{% autopaginate snipts 10 %}
|
||||||
|
{% for snipt in snipts %}
|
||||||
|
{% include "snipts/snipt-list.html" %}
|
||||||
|
{% empty %}
|
||||||
|
<div class="empty-snipts">
|
||||||
|
{% if request.user == user and not request.user.is_active %}
|
||||||
|
Welcome! Please <a target="_self" href="/account/activate/">activate your account</a> to create your first snipt.
|
||||||
|
{% else %}
|
||||||
|
{% if request.user == user %}
|
||||||
|
Welcome! Create your first snipt by clicking "Add Snipt" above.
|
||||||
|
{% else %}
|
||||||
|
No snipts to show here. Sorry!
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% paginate %}
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
<script type="text/javascript" id="disqus">
|
<script type="text/javascript" id="disqus">
|
||||||
var disqus_shortname = 'snipt-net';
|
var disqus_shortname = 'snipt-net';
|
||||||
|
|
|
@ -264,6 +264,7 @@ def list_user(request, username_or_custom_slug, tag_slug=None):
|
||||||
'tags': tags,
|
'tags': tags,
|
||||||
'tag': tag,
|
'tag': tag,
|
||||||
'user': user,
|
'user': user,
|
||||||
|
'users_for_full_page': ['robertbanh'],
|
||||||
}
|
}
|
||||||
|
|
||||||
if 'rss' in request.GET:
|
if 'rss' in request.GET:
|
||||||
|
|
Loading…
Reference in New Issue