Advertisement
Guest User

Untitled

a guest
Aug 9th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.60 KB | None | 0 0
  1. diff --git a/templates/view_profile.html b/templates/view_profile.html
  2. index 6f98547..d3b09d0 100644
  3. --- a/templates/view_profile.html
  4. +++ b/templates/view_profile.html
  5. @@ -164,7 +164,11 @@
  6.  </div>
  7.  <div class="container">
  8.      <div class="row">
  9. -        {% for mod in profile.mods  %}
  10. +        {% if user.username == profile.username %}
  11. +        {% for mod in profile.mods if mod.default_version() %}
  12. +        {% else %}
  13. +        {% for mod in profile.mods if mod.published and mod.default_version() %}
  14. +        {% endif %}
  15.          {% include "mod-box.html" %}
  16.          {% endfor %}
  17.      </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement