diff --git a/snipts/templates/snipts/list.html b/snipts/templates/snipts/list.html index 2c7f044..34116b7 100644 --- a/snipts/templates/snipts/list.html +++ b/snipts/templates/snipts/list.html @@ -21,23 +21,41 @@ {% if request.user.profile.list_view == 'C' %} ng-cloak ng-show="$root.account.id" {% endif %}> - {% autopaginate snipts 10 %} - {% for snipt in snipts %} - {% include "snipts/snipt-list.html" %} - {% empty %} -
- {% if request.user == user and not request.user.is_active %} - Welcome! Please activate your account to create your first snipt. - {% else %} - {% if request.user == user %} - Welcome! Create your first snipt by clicking "Add Snipt" above. + {% if request.user.username == user.username and user.username in users_for_full_page %} + {% for snipt in snipts %} + {% include "snipts/snipt-list.html" %} + {% empty %} +
+ {% if request.user == user and not request.user.is_active %} + Welcome! Please activate your account to create your first snipt. {% 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 %} -
- {% endfor %} - {% paginate %} +
+ {% endfor %} + {% else %} + {% autopaginate snipts 10 %} + {% for snipt in snipts %} + {% include "snipts/snipt-list.html" %} + {% empty %} +
+ {% if request.user == user and not request.user.is_active %} + Welcome! Please activate your account 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 %} +
+ {% endfor %} + {% paginate %} + {% endif %}