mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Improve SAS main view, and make some translations
This commit is contained in:
1 parent
3f6199f6c2
commit
881afd9e0a
3 files changed
+91
-75
No files matched your search
@@ -85,6 +85,7 @@ class SASMainView(FormView):
|
||||
def get_context_data(self, **kwargs):
|
||||
kwargs = super(SASMainView, self).get_context_data(**kwargs)
|
||||
kwargs['root_file'] = SithFile.objects.filter(id=settings.SITH_SAS_ROOT_DIR_ID).first()
|
||||
kwargs['latest'] = SithFile.objects.filter(is_in_sas=True, is_folder=True, is_moderated=True).order_by('-id')[:5]
|
||||
return kwargs
|
||||
|
||||
class PictureView(CanViewMixin, DetailView, FormMixin):
|
||||
|
||||
Reference in new issue
Block a user