Only show action buttons on v2

This commit is contained in:
Alasdair Smith 2018-05-16 18:05:33 +01:00
parent 2d1bcda9ff
commit 83c62c8ab1
2 changed files with 35 additions and 25 deletions

View file

@ -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( input.select-item(
select-individual, select-individual,
type="checkbox", type="checkbox",
@ -37,27 +40,30 @@
tooltip-placement="right" tooltip-placement="right"
tooltip-append-to-body="true" tooltip-append-to-body="true"
) )
.col-xs-4.col-sm-3.col-md-2
div(class=lastUpdatedClasses)
if settings.overleaf if settings.overleaf
span.last-modified(tooltip="{{project.lastUpdated | formatDate}}") {{project.lastUpdated | fromNowDate}} span.last-modified(tooltip="{{project.lastUpdated | formatDate}}") {{project.lastUpdated | fromNowDate}}
else else
span.last-modified {{project.lastUpdated | formatDate}} span.last-modified {{project.lastUpdated | formatDate}}
.hidden-xs.col-sm-3.col-md-2
button.btn.btn-link.action-btn( if settings.overleaf
tooltip=translate('copy'), .hidden-xs.col-sm-3.col-md-2
tooltip-placement="top", button.btn.btn-link.action-btn(
tooltip-append-to-body="true", tooltip=translate('copy'),
) tooltip-placement="top",
i.icon.fa.fa-files-o tooltip-append-to-body="true",
button.btn.btn-link.action-btn( )
tooltip=translate('download'), i.icon.fa.fa-files-o
tooltip-placement="top", button.btn.btn-link.action-btn(
tooltip-append-to-body="true", tooltip=translate('download'),
) tooltip-placement="top",
i.icon.fa.fa-cloud-download tooltip-append-to-body="true",
button.btn.btn-link.action-btn( )
tooltip=translate('archive'), i.icon.fa.fa-cloud-download
tooltip-placement="top", button.btn.btn-link.action-btn(
tooltip-append-to-body="true", tooltip=translate('archive'),
) tooltip-placement="top",
i.icon.fa.fa-inbox tooltip-append-to-body="true",
)
i.icon.fa.fa-inbox

View file

@ -131,7 +131,10 @@
) )
li.container-fluid li.container-fluid
.row .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( input.select-all(
select-all, select-all,
type="checkbox" type="checkbox"
@ -142,11 +145,12 @@
.col-xs-2 .col-xs-2
span.header.clickable(ng-click="changePredicate('accessLevel')") #{translate("owner")} span.header.clickable(ng-click="changePredicate('accessLevel')") #{translate("owner")}
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')") 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")} span.header.clickable(ng-click="changePredicate('lastUpdated')") #{translate("last_modified")}
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')") i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
.hidden-xs.col-sm-3.col-md-2 if settings.overleaf
span.header #{translate("actions")} .hidden-xs.col-sm-3.col-md-2
span.header #{translate("actions")}
li.project_entry.container-fluid( li.project_entry.container-fluid(
ng-repeat="project in visibleProjects | orderBy:predicate:reverse", ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
ng-controller="ProjectListItemController" ng-controller="ProjectListItemController"