diff --git a/nyaa/models.py b/nyaa/models.py index c2afe8d..1b80977 100644 --- a/nyaa/models.py +++ b/nyaa/models.py @@ -525,8 +525,10 @@ class User(db.Model): return 'User' elif self.level == UserLevelType.TRUSTED: return 'Trusted' - elif self.level >= UserLevelType.MODERATOR: + elif self.level == UserLevelType.MODERATOR: return 'Moderator' + elif self.level >= UserLevelType.SUPERADMIN: + return 'Administrator' @property def userstatus_str(self): diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index 93c8633..fd6dec9 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -251,18 +251,24 @@ ul.nav-tabs#profileTabs { margin-top: 10px; margin-bottom: 10px; } - +.comment-panel .panel-body { + padding-top: 10px; + padding-bottom: 10px; +} +.comment-panel .col-md-2 p { + margin-bottom: 5px; +} .comment-panel:target { border-color: black; border-width: 2px; } .text-purple, a.text-purple:visited { - color: #a760bc; + color: #a760bc; } a.text-purple:hover, a.text-purple:active, a.text-purple:focus { - color: #a760e0; + color: #a760e0; } .comment-content { @@ -385,13 +391,13 @@ h6:hover .header-anchor { margin-left: 20px; margin-bottom: 10px; } - + #navFilter-criteria > .bootstrap-select:first-child > button { /* !important is used here to override the programmatically added style on element */ border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; } - + .search-container > .search-bar { margin-top: 15px; } diff --git a/nyaa/templates/user.html b/nyaa/templates/user.html index 2e69a51..35691c5 100644 --- a/nyaa/templates/user.html +++ b/nyaa/templates/user.html @@ -27,7 +27,7 @@
- {{ comment.user.username }} + {{ comment.user.username }} {% if comment.user.id == torrent.uploader_id and not torrent.anonymous %} (uploader) {% endif %}
-