overleaf/services/web/app/views/project/list.jade

162 lines
5 KiB
Text
Raw Normal View History

2014-02-12 05:23:40 -05:00
extends ../layout
2014-06-11 09:52:23 -04:00
block scripts
script(src=jsPath+'project-list.js')
2014-02-12 05:23:40 -05:00
block content
2014-06-11 09:52:23 -04:00
#projectList
2014-02-12 05:23:40 -05:00
2014-06-11 09:52:23 -04:00
script(type="text/javascript").
2014-06-11 11:32:56 -04:00
window.data = {
projects: !{projects},
tags: !{tags}
};
2014-06-04 12:46:22 -04:00
2014-06-11 09:52:23 -04:00
script(type="text/x-handlebars", data-template-name="projects")
- if (projects.length > 0)
ul.list-unstyled.project-list
li.container-fluid
.row
.col-md-6
input(type="checkbox").select-all
span.title TITLE
.col-md-2
span.owner OWNER
.col-md-4
span.last-modified LAST MODIFIED
{{#each itemController="project"}}
li.project_entry.container-fluid
.row
.col-md-6
input(type="checkbox").select-item
span.title
<a class="projectName" {{ bind-attr href=url }}>{{name}}</a>
.col-md-2
span.owner {{ownerName}}
.col-md-4
span.last-modified.isoDate {{formattedLastUpdated}}
{{/each}}
- else
.row
.span12
.welcome
h1
i.fa.fa-arrow-left
| Welcome! Follow the arrow to get started
p New to LaTeX? Start by having a look at our
a(href="/templates") templates
| or
a(href="/learn") help guides
| .
2014-02-12 05:23:40 -05:00
2014-06-11 11:32:56 -04:00
script(type="text/x-handlebars", data-template-name="tags")
ul.list-unstyled.folders-menu.js-folders-menu
li
a.menu-indent(href="#") All projects
li
a.menu-indent(href="#") Your projects
li
a.menu-indent(href="#") Shared with you
li
h2 Folders
{{#each itemController="tag"}}
li
a.menu-indent(href="#")
i.icon.fa.fa-folder-o
| {{name}}
span.small ({{projectCount}})
{{/each}}
2014-06-11 09:52:23 -04:00
script(type="text/x-handlebars", data-template-name="application")
.content.content-alt
.container
2014-06-09 03:51:12 -04:00
.row
.col-md-2
2014-06-11 09:52:23 -04:00
#newProject.dropdown
a.btn.btn-primary.dropdown-toggle(data-toggle="dropdown", href="#") New Project
ul.dropdown-menu(role="menu")
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a#blankNewProject(href="#", data-csrf=csrfToken) Blank Project
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a#newProjectExample(href="#", data-csrf=csrfToken) Example Project
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a#uploadNewProject(href="#", data-csrf=csrfToken) Upload Project
li.divider
li.dropdown-header Templates
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a.menu-indent(href="/templates/cv") CV or Resume
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a.menu-indent(href="/templates/cover-letters") Cover Letter
2014-06-06 14:19:53 -04:00
li
2014-06-11 09:52:23 -04:00
a.menu-indent(href="/templates/journals") Journal Article
li
a.menu-indent(href="/templates/presentations") Presentation
li
a.menu-indent(href="/templates/thesis") Thesis
li
a.menu-indent(href="/templates/bibliographies") Bibliographies
li
a.menu-indent(href="/templates") View All »
2014-06-09 03:54:14 -04:00
.row-spaced
2014-06-11 11:32:56 -04:00
{{ render "tags" }}
2014-06-11 09:52:23 -04:00
.row-spaced-small
ul.list-unstyled.folders-menu
li
a.menu-indent(href="#")
i.icon.fa.fa-plus
| New Folder
2014-06-04 12:46:22 -04:00
2014-06-11 09:52:23 -04:00
-if (settings.enableSubscriptions)
.row-spaced
a(href="/user/bonus").btn.btn-info Upgrade Account
2014-02-12 05:23:40 -05:00
2014-06-11 09:52:23 -04:00
.col-md-10
.container-fluid
.row
.col-md-12
form.project-search.form-horizontal(role="form")
.form-group.has-feedback.col-md-7
input(placeholder='Search projects…', autofocus='autofocus').form-control.col-md-7
i.fa.fa-search.form-control-feedback
//- i.fa.fa-remove
2014-06-06 14:37:04 -04:00
2014-06-11 09:52:23 -04:00
.project-tools.js-toggle-tools
.btn-toolbar
.btn-group
a.btn.btn-default(href='#', data-toggle="tooltip", data-placement="bottom", title="", data-original-title="Download")
i.fa.fa-cloud-download
a.btn.btn-default(href='#', data-toggle="tooltip", data-placement="bottom", title="", data-original-title="Delete")
i.fa.fa-trash-o
2014-06-06 14:37:04 -04:00
2014-06-11 09:52:23 -04:00
.btn-group
a.btn.btn-default.dropdown-toggle(href="#", data-toggle="dropdown")
i.fa.fa-folder-open-o
|
span.caret
ul.dropdown-menu.dropdown-menu-right(role="menu")
li.dropdown-header Add to folder
2014-06-06 12:47:52 -04:00
li
2014-06-11 09:52:23 -04:00
a.menu-indent(href="#") PhD
2014-06-06 14:37:04 -04:00
li
2014-06-11 09:52:23 -04:00
a.menu-indent(href="#") Personal
li
a.menu-indent(href="#") Papers
2014-02-12 05:23:40 -05:00
2014-06-11 09:52:23 -04:00
.btn-group
a.btn.btn-default.dropdown-toggle(data-toggle="dropdown", href="#") More
span.caret
ul.dropdown-menu.dropdown-menu-right(role="menu")
li
a(href='/project/'+"5369c5737fc6b47f048da1f5"+'/clone', data-csrf=csrfToken).cloneProject Make a Copy...
-if ("owner" == "owner")
li
a(href='/project/'+"5369c5737fc6b47f048da1f5"+'/rename', data-name="the project", data-id="5369c5737fc6b47f048da1f5", data-csrf=csrfToken).renameProject Rename...
-else
li
a(href='/project/'+"5369c5737fc6b47f048da1f5"+'/leave', data-name="the project", data-id="5369c5737fc6b47f048da1f5", data-csrf=csrfToken).leaveProject Leave Project
.row.row-spaced
.col-md-12
.card.card-thin
{{ render "projects" }}