diff --git a/core/models.py b/core/models.py index 9fda8768..bcd72a83 100644 --- a/core/models.py +++ b/core/models.py @@ -649,6 +649,11 @@ class SithFile(models.Model): from sas.models import Picture return Picture.objects.filter(id=self.id).first() + @property + def as_album(self): + from sas.models import Album + return Album.objects.filter(id=self.id).first() + def __str__(self): if self.is_folder: return _("Folder: ") + self.name diff --git a/core/static/core/style.css b/core/static/core/style.css index 776a0290..9a1a9c88 100644 --- a/core/static/core/style.css +++ b/core/static/core/style.css @@ -372,6 +372,10 @@ textarea { display: block; margin: auto; } +.not_moderated { + border: solid 1px red; + box-shadow: red 2px 2px 10px; +} /*--------------------------------FOOTER-------------------------------*/ footer{ diff --git a/core/templates/core/file_detail.jinja b/core/templates/core/file_detail.jinja index 0a685e20..8b3e65a6 100644 --- a/core/templates/core/file_detail.jinja +++ b/core/templates/core/file_detail.jinja @@ -27,6 +27,15 @@ |

+ {% if clipboard %} +

{% trans %}Clipboard: {% endtrans %} +

+

+ {% endif %}