2014-07-16 09:59:52 -04:00
|
|
|
.row
|
2015-11-02 11:08:02 -05:00
|
|
|
.col-xs-12(ng-cloak)
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-16 09:59:52 -04:00
|
|
|
form.project-search.form-horizontal(role="form")
|
2014-07-23 06:12:12 -04:00
|
|
|
.form-group.has-feedback.has-feedback-left.col-md-7.col-xs-12
|
|
|
|
input.form-control.col-md-7.col-xs-12(
|
2017-01-31 09:57:22 -05:00
|
|
|
placeholder=translate('search_projects')+"…",
|
2017-10-09 06:59:03 -04:00
|
|
|
aria-label=translate('search_projects')+"…",
|
2014-07-16 09:59:52 -04:00
|
|
|
autofocus='autofocus',
|
2016-09-06 09:59:18 -04:00
|
|
|
ng-model="searchText.value",
|
2014-07-21 06:33:10 -04:00
|
|
|
focus-on='search:clear',
|
|
|
|
ng-keyup="searchProjects()"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
|
|
|
i.fa.fa-search.form-control-feedback-left
|
|
|
|
i.fa.fa-times.form-control-feedback(
|
|
|
|
ng-click="clearSearchText()",
|
|
|
|
style="cursor: pointer;",
|
2016-09-06 09:59:18 -04:00
|
|
|
ng-show="searchText.value.length > 0"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
|
|
|
//- i.fa.fa-remove
|
|
|
|
|
|
|
|
.project-tools(ng-cloak)
|
|
|
|
.btn-toolbar(ng-show="filter != 'archived'")
|
|
|
|
.btn-group(ng-hide="selectedProjects.length < 1")
|
|
|
|
a.btn.btn-default(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2017-01-31 09:57:22 -05:00
|
|
|
tooltip=translate('download'),
|
2014-07-16 09:59:52 -04:00
|
|
|
tooltip-placement="bottom",
|
2014-07-16 12:04:17 -04:00
|
|
|
tooltip-append-to-body="true",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="downloadSelectedProjects()"
|
|
|
|
)
|
|
|
|
i.fa.fa-cloud-download
|
2018-05-11 05:10:47 -04:00
|
|
|
- var archiveButtonString = settings.overleaf ? translate("archive") : translate("delete")
|
|
|
|
- var archiveButtonIcon = settings.overleaf ? "fa-inbox" : "fa-trash-o"
|
2014-07-16 09:59:52 -04:00
|
|
|
a.btn.btn-default(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2018-05-11 05:10:47 -04:00
|
|
|
tooltip=`{{ isArchiveableProjectSelected ? '${archiveButtonString}' : '${translate("leave")}' }}`,
|
2014-07-16 09:59:52 -04:00
|
|
|
tooltip-placement="bottom",
|
2014-07-16 12:04:17 -04:00
|
|
|
tooltip-append-to-body="true",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="openArchiveProjectsModal()"
|
|
|
|
)
|
2018-05-11 05:10:47 -04:00
|
|
|
i.fa(ng-class=`isArchiveableProjectSelected ? '${archiveButtonIcon}' : 'fa-sign-out'`)
|
2014-07-16 09:59:52 -04:00
|
|
|
|
2015-08-21 15:38:21 -04:00
|
|
|
.btn-group.dropdown(ng-hide="selectedProjects.length < 1", dropdown)
|
2014-07-16 09:59:52 -04:00
|
|
|
a.btn.btn-default.dropdown-toggle(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2014-07-16 09:59:52 -04:00
|
|
|
data-toggle="dropdown",
|
2015-08-21 15:38:21 -04:00
|
|
|
dropdown-toggle,
|
2017-01-31 09:57:22 -05:00
|
|
|
tooltip=translate('add_to_folders'),
|
2014-07-16 12:04:17 -04:00
|
|
|
tooltip-append-to-body="true",
|
2014-07-16 09:59:52 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
)
|
|
|
|
i.fa.fa-folder-open-o
|
|
|
|
|
|
|
|
|
span.caret
|
2017-11-07 05:54:41 -05:00
|
|
|
ul.dropdown-menu.dropdown-menu-right.js-tags-dropdown-menu.tags-dropdown-menu(
|
2014-07-16 09:59:52 -04:00
|
|
|
role="menu"
|
|
|
|
ng-controller="TagListController"
|
|
|
|
)
|
2014-07-30 12:17:13 -04:00
|
|
|
li.dropdown-header #{translate("add_to_folder")}
|
2014-07-16 09:59:52 -04:00
|
|
|
li(
|
2016-01-28 10:11:57 -05:00
|
|
|
ng-repeat="tag in tags | orderBy:'name'",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-controller="TagDropdownItemController"
|
2018-04-16 19:16:47 -04:00
|
|
|
ng-if="!tag.isV1"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
|
|
|
a(href="#", ng-click="addOrRemoveProjectsFromTag()", stop-propagation="click")
|
|
|
|
i.fa(
|
|
|
|
ng-class="{\
|
|
|
|
'fa-check-square-o': areSelectedProjectsInTag == true,\
|
|
|
|
'fa-square-o': areSelectedProjectsInTag == false,\
|
|
|
|
'fa-minus-square-o': areSelectedProjectsInTag == 'partial'\
|
|
|
|
}"
|
|
|
|
)
|
|
|
|
| {{tag.name}}
|
|
|
|
li.divider
|
|
|
|
li
|
2016-03-22 08:11:59 -04:00
|
|
|
a(href, ng-click="openNewTagModal()", stop-propagation="click") #{translate("create_new_folder")}
|
2014-07-16 09:59:52 -04:00
|
|
|
|
2015-09-03 08:01:19 -04:00
|
|
|
.btn-group(ng-hide="selectedProjects.length != 1", dropdown).dropdown
|
2014-07-16 09:59:52 -04:00
|
|
|
a.btn.btn-default.dropdown-toggle(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2015-09-03 08:01:19 -04:00
|
|
|
data-toggle="dropdown",
|
|
|
|
dropdown-toggle
|
2016-01-28 10:11:57 -05:00
|
|
|
) #{translate("more")}
|
2014-07-16 09:59:52 -04:00
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu.dropdown-menu-right(role="menu")
|
|
|
|
li(ng-show="getFirstSelectedProject().accessLevel == 'owner'")
|
|
|
|
a(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="openRenameProjectModal()"
|
2014-07-30 12:17:13 -04:00
|
|
|
) #{translate("rename")}
|
2014-07-16 09:59:52 -04:00
|
|
|
li
|
|
|
|
a(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="openCloneProjectModal()"
|
2014-07-30 12:17:13 -04:00
|
|
|
) #{translate("make_copy")}
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
.btn-toolbar(ng-show="filter == 'archived'")
|
|
|
|
.btn-group(ng-hide="selectedProjects.length < 1")
|
|
|
|
a.btn.btn-default(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2014-07-16 09:59:52 -04:00
|
|
|
data-original-title="Restore",
|
|
|
|
data-toggle="tooltip",
|
|
|
|
data-placement="bottom",
|
|
|
|
ng-click="restoreSelectedProjects()"
|
2014-07-30 12:17:13 -04:00
|
|
|
) #{translate("restore")}
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
.btn-group(ng-hide="selectedProjects.length < 1")
|
|
|
|
a.btn.btn-danger(
|
2016-03-22 08:11:59 -04:00
|
|
|
href,
|
2014-07-16 09:59:52 -04:00
|
|
|
data-original-title="Delete Forever",
|
|
|
|
data-toggle="tooltip",
|
|
|
|
data-placement="bottom",
|
|
|
|
ng-click="openDeleteProjectsModal()"
|
2014-07-30 12:17:13 -04:00
|
|
|
) #{translate("delete_forever")}
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
.row.row-spaced
|
2017-11-30 11:59:13 -05:00
|
|
|
each warning in warnings
|
2017-11-15 12:19:37 -05:00
|
|
|
.col-xs-12
|
2017-12-01 06:00:13 -05:00
|
|
|
.alert.alert-warning(role="alert")= warning
|
2017-11-15 12:19:37 -05:00
|
|
|
|
2014-07-23 06:08:55 -04:00
|
|
|
.col-xs-12
|
2014-07-24 09:00:01 -04:00
|
|
|
.card.card-thin.project-list-card
|
2014-07-16 09:59:52 -04:00
|
|
|
ul.list-unstyled.project-list.structured-list(
|
|
|
|
select-all-list,
|
|
|
|
ng-if="projects.length > 0",
|
2014-07-24 09:00:01 -04:00
|
|
|
max-height="projectListHeight - 25",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
li.container-fluid
|
|
|
|
.row
|
2014-08-05 12:10:24 -04:00
|
|
|
.col-xs-6
|
2014-07-16 09:59:52 -04:00
|
|
|
input.select-all(
|
|
|
|
select-all,
|
|
|
|
type="checkbox"
|
2017-10-23 11:09:43 -04:00
|
|
|
aria-label=translate('select_all_projects')
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
2014-08-07 09:46:17 -04:00
|
|
|
span.header.clickable(ng-click="changePredicate('name')") #{translate("title")}
|
2014-07-18 07:20:12 -04:00
|
|
|
i.tablesort.fa(ng-class="getSortIconClass('name')")
|
2014-08-05 12:10:24 -04:00
|
|
|
.col-xs-2
|
2014-08-07 09:46:17 -04:00
|
|
|
span.header.clickable(ng-click="changePredicate('accessLevel')") #{translate("owner")}
|
2014-07-18 07:20:12 -04:00
|
|
|
i.tablesort.fa(ng-class="getSortIconClass('accessLevel')")
|
2014-08-05 12:10:24 -04:00
|
|
|
.col-xs-4
|
2014-08-07 09:46:17 -04:00
|
|
|
span.header.clickable(ng-click="changePredicate('lastUpdated')") #{translate("last_modified")}
|
2014-07-18 07:20:12 -04:00
|
|
|
i.tablesort.fa(ng-class="getSortIconClass('lastUpdated')")
|
2014-07-16 09:59:52 -04:00
|
|
|
li.project_entry.container-fluid(
|
2014-07-17 12:34:09 -04:00
|
|
|
ng-repeat="project in visibleProjects | orderBy:predicate:reverse",
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-controller="ProjectListItemController"
|
|
|
|
)
|
2017-10-30 07:27:24 -04:00
|
|
|
.row(
|
2017-10-30 11:32:54 -04:00
|
|
|
ng-if="!project.isV1Project"
|
2017-10-30 07:27:24 -04:00
|
|
|
select-row
|
|
|
|
)
|
|
|
|
include ./item
|
|
|
|
.row(
|
2017-10-30 11:32:54 -04:00
|
|
|
ng-if="project.isV1Project"
|
2017-10-30 07:27:24 -04:00
|
|
|
)
|
2017-11-02 08:24:26 -04:00
|
|
|
include ./v1-item
|
2014-07-16 09:59:52 -04:00
|
|
|
li(
|
|
|
|
ng-if="visibleProjects.length == 0",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
.row
|
2014-07-23 06:08:55 -04:00
|
|
|
.col-xs-12.text-centered
|
2014-07-30 12:17:13 -04:00
|
|
|
small #{translate("no_projects")}
|
2015-11-02 11:08:02 -05:00
|
|
|
|
2014-07-16 09:59:52 -04:00
|
|
|
div.welcome.text-centered(ng-if="projects.length == 0", ng-cloak)
|
2014-07-30 12:17:13 -04:00
|
|
|
h2 #{translate("welcome_to_sl")}
|
2014-09-01 15:14:49 -04:00
|
|
|
p #{translate("new_to_latex_look_at")}
|
2014-07-30 12:17:13 -04:00
|
|
|
a(href="/templates") #{translate("templates").toLowerCase()}
|
|
|
|
| #{translate("or")}
|
|
|
|
a(href="/learn") #{translate("latex_help_guide")}
|
2014-07-16 09:59:52 -04:00
|
|
|
| ,
|
|
|
|
br
|
2014-08-07 09:46:17 -04:00
|
|
|
| #{translate("or_create_project_left")}
|
2015-11-02 11:08:02 -05:00
|
|
|
|
|
|
|
|