diff --git a/services/web/app/views/project/list/item.pug b/services/web/app/views/project/list/item.pug index b2fc9390de..ccbf73ac80 100644 --- a/services/web/app/views/project/list/item.pug +++ b/services/web/app/views/project/list/item.pug @@ -1,4 +1,7 @@ -.col-xs-6.col-sm-4.col-md-6 +- var titleClasses = settings.overleaf ? "col-xs-6 col-sm-4 col-md-6" : "col-xs-6" +- var lastUpdatedClasses = settings.overleaf ? " col-xs-4 col-sm-3 col-md-2" : "col-xs-4" + +div(class=titleClasses) input.select-item( select-individual, type="checkbox", @@ -37,27 +40,30 @@ tooltip-placement="right" tooltip-append-to-body="true" ) -.col-xs-4.col-sm-3.col-md-2 + +div(class=lastUpdatedClasses) if settings.overleaf span.last-modified(tooltip="{{project.lastUpdated | formatDate}}") {{project.lastUpdated | fromNowDate}} else span.last-modified {{project.lastUpdated | formatDate}} -.hidden-xs.col-sm-3.col-md-2 - button.btn.btn-link.action-btn( - tooltip=translate('copy'), - tooltip-placement="top", - tooltip-append-to-body="true", - ) - i.icon.fa.fa-files-o - button.btn.btn-link.action-btn( - tooltip=translate('download'), - tooltip-placement="top", - tooltip-append-to-body="true", - ) - i.icon.fa.fa-cloud-download - button.btn.btn-link.action-btn( - tooltip=translate('archive'), - tooltip-placement="top", - tooltip-append-to-body="true", - ) - i.icon.fa.fa-inbox \ No newline at end of file + +if settings.overleaf + .hidden-xs.col-sm-3.col-md-2 + button.btn.btn-link.action-btn( + tooltip=translate('copy'), + tooltip-placement="top", + tooltip-append-to-body="true", + ) + i.icon.fa.fa-files-o + button.btn.btn-link.action-btn( + tooltip=translate('download'), + tooltip-placement="top", + tooltip-append-to-body="true", + ) + i.icon.fa.fa-cloud-download + button.btn.btn-link.action-btn( + tooltip=translate('archive'), + tooltip-placement="top", + tooltip-append-to-body="true", + ) + i.icon.fa.fa-inbox \ No newline at end of file diff --git a/services/web/app/views/project/list/project-list.pug b/services/web/app/views/project/list/project-list.pug index 6e1732ad63..5ce92d3d5e 100644 --- a/services/web/app/views/project/list/project-list.pug +++ b/services/web/app/views/project/list/project-list.pug @@ -131,7 +131,10 @@ ) li.container-fluid .row - .col-xs-6.col-sm-4.col-md-6 + - var titleClasses = settings.overleaf ? " col-xs-6 col-sm-4 col-md-6" : "col-xs-6" + - var lastUpdatedClasses = settings.overleaf ? " col-xs-4 col-sm-3 col-md-2" : "col-xs-4" + + div(class=titleClasses) input.select-all( select-all, type="checkbox" @@ -142,11 +145,12 @@ .col-xs-2 span.header.clickable(ng-click="changePredicate('accessLevel')") #{translate("owner")} i.tablesort.fa(ng-class="getSortIconClass('accessLevel')") - .col-xs-4.col-sm-3.col-md-2 + div(class=lastUpdatedClasses) span.header.clickable(ng-click="changePredicate('lastUpdated')") #{translate("last_modified")} i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')") - .hidden-xs.col-sm-3.col-md-2 - span.header #{translate("actions")} + if settings.overleaf + .hidden-xs.col-sm-3.col-md-2 + span.header #{translate("actions")} li.project_entry.container-fluid( ng-repeat="project in visibleProjects | orderBy:predicate:reverse", ng-controller="ProjectListItemController"