templates.jade 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. #templates(style='display : none')
  2. script(type="text/template")#editorLayoutTemplate
  3. div#mainSplitter
  4. aside#sidebar.ui-layout-west
  5. //input#search-field(type='search', placeholder='Filter Files by Name')
  6. // Position:relative is to get scrolling while dragging to work:
  7. // http://stackoverflow.com/questions/1718547/jquery-draggable-scroll-not-working-when-helper-clone-is-used
  8. #sections(style="position: relative;")
  9. #options
  10. span#saving-area
  11. #content.content.ui-layout-center
  12. #loading.fullEditorArea
  13. #disconnect(style='display: none;').fullEditorArea
  14. #mainAreaMessage Sorry, your browser has lost the connection to our server. Please try refreshing the page.
  15. #projectDeleted(style='display: none;').fullEditorArea
  16. #mainAreaMessage This project has been renamed or deleted.
  17. #folderArea(style='display: none;').fullEditorArea
  18. #imageArea(style='display: none;').fullEditorArea
  19. iframe
  20. script(type="text/template")#tabTemplate
  21. li(id="{{ id }}-tab-li")
  22. a(href="#", data-toggle="tab", data-target="\\#{{ show }}-tab", class="tab-link {{ id }}-tab")
  23. .content {{ name }}
  24. script(type="text/template")#tabContentTemplate
  25. div.tab-pane(id="{{ id }}-tab")
  26. script(type="text/template")#fileTreeTemplate
  27. .file-tree.js-file-tree
  28. script(type="text/template")#fileTreeActionsTemplate
  29. .actions
  30. .new-entity.dropdown.js-new-entity-menu
  31. a.dropdown-toggle(href="#", data-toggle="dropdown", title="New file, folder or upload")
  32. i.icon-plus
  33. span.text New
  34. ul.dropdown-menu
  35. li
  36. a.js-new-file(href="#")
  37. img(src="/img/nide/doc.png")
  38. | New File
  39. li
  40. a.js-new-folder(href="#")
  41. img(src="/img/nide/folder.png")
  42. | New Folder
  43. li
  44. a.js-upload-file(href="#")
  45. img(src="/img/upload-file.png")
  46. | Upload file(s)
  47. .js-rename-btn.rename-btn
  48. a(href="#", title="Rename")
  49. i.icon-pencil
  50. .js-delete-btn.delete-btn
  51. a(href="#", title="Delete")
  52. i.icon-trash
  53. script(type="text/template")#rootDocListEntity
  54. option {{name}}
  55. script(type="text/template")#entityTemplate
  56. .entity-list-item(class="entity-{{ type }}", entity-type="{{ type }}", id="{{ id }}")
  57. .clickable.js-clickable
  58. i(class="sprite-{{ type }}")
  59. span.name {{ name }}
  60. input.rename.js-rename
  61. .dropdown-caret
  62. i.icon-chevron-down
  63. script(type="text/template")#folderTemplate
  64. .entity-list-item(class="entity-{{ type }}", entity-type="{{ type }}", id="{{ id }}")
  65. .toggle.js-toggle
  66. img(src="/img/nide/right-arrow.png").js-closed
  67. img(src="/img/nide/down-arrow.png").js-open
  68. .clickable.js-clickable
  69. i(class="sprite-{{ type }}")
  70. span.name {{ name }}
  71. input.rename.js-rename
  72. .dropdown-caret
  73. i.icon-chevron-down
  74. script(type="text/template")#entityListTemplate
  75. .contents
  76. .entity-list(id="{{ id }}-file-list")
  77. script(type="text/template")#newEntityModalTemplate
  78. div
  79. input.inputmodal(placeholder="name")
  80. script(type="text/template")#messageTemplate
  81. .chatMessage
  82. span.name {{name}}
  83. span :
  84. span.message {{message}}
  85. script(type="text/template")#spellingMenuTemplate
  86. div.btn-group.spell-check-menu
  87. a.btn.dropdown-toggle(data-toggle="dropdown", href="#")
  88. span.underlined Ab
  89. ul.dropdown-menu.pull-right
  90. li.divider
  91. li
  92. a#learnWord(href="#") Learn word
  93. script(type="text/template")#spellingMenuEntryTemplate
  94. li.spelling-suggestion
  95. a(href="#") {{word}}
  96. script(type="text/template")#contextMenuTemplate
  97. ul.dropdown-menu.context-menu
  98. script(type="text/template")#contextMenuEntryTemplate
  99. li
  100. a(href="#") {{text}}
  101. script(type="text/template")#contextMenuDividerTemplate
  102. li.divider
  103. script(type="text/template")#genericModalTemplate
  104. .modal
  105. .modal-header
  106. h3 {{ title }}
  107. .modal-body
  108. .message {{{ message }}}
  109. .creditCardFreeTrialModal
  110. .modal-footer
  111. script(type="text/template")#creditCardFreeTrialModal
  112. .modal
  113. .modal-header
  114. h3 {{ title }}
  115. .modal-body
  116. #subscribeForm
  117. .modal-footer
  118. script(type="text/template")#genericModalButtonTemplate
  119. button(class="btn {{ class }}") {{ text }}
  120. script(type="text/template")#editorPanelTemplate
  121. #editorArea(style='display: none;')
  122. #editorSplitter
  123. #leftEditorPanel.ui-layout-center
  124. #editorWrapper
  125. #editor
  126. #undoConflictWarning(style="display: none")
  127. | <strong>Watch out!</strong> We had to undo some of your collaborators changes before we could undo yours.
  128. a(href="#").js-hide Hide
  129. #rightEditorPanel.ui-layout-east
  130. script(type="text/template")#loadingIndicatorTemplate
  131. .loading
  132. script(type="text/template")#pdfSideBarLinkTemplate
  133. ul
  134. li.root.project#pdf(title='Show PDF', alt='pdf')
  135. img(src='/img/pdf.png')
  136. span PDF
  137. script(type="text/template")#helpLinkTemplate
  138. div
  139. a(href="#", title="LaTeX Help") LaTeX Help
  140. script(type="text/template")#editorTourTemplate
  141. div
  142. a(href="#", title="Editor Tour")#editorTourLink Editor Tour
  143. script(type="text/template")#pdfPanelTemplate
  144. #pdfArea(style='display: none;').fullEditorArea
  145. #pdfToolBar.btn-toolbar
  146. .btn-group
  147. button#recompilePdf.btn.btn-success(type='button') Recompile
  148. .btn-group#showLogGroup
  149. button#showLog.btn Logs
  150. .btn-group#showPdfGroup
  151. button#showPdf.btn Back to PDF
  152. .btn-group
  153. button#downloadPdf.btn Download
  154. button#downloadLinksButton.btn.dropdown-toggle(data-toggle="dropdown")
  155. span.caret
  156. ul.dropdown-menu#downloadLinks
  157. .btn-group.pull-right(data-toggle="buttons-radio")
  158. button(type="button", title="Flat view")#flatViewButton.btn
  159. i.icon-flatview
  160. button(type="button", title="Split view")#splitViewButton.btn
  161. i.icon-splitview
  162. #pdfAreaContent
  163. .not-compiled-yet-message
  164. | Click here to preview your work as a PDF.
  165. .compiling-message(style='display: none;') Compiling...
  166. #logArea(style='display: none;')
  167. ul
  168. button.btn.btn-info.btn-large#showRawLog Show Raw Logs
  169. #rawLogArea(style='display: none;')
  170. pre
  171. script(type="text/template")#outputFileLinkTemplate
  172. li
  173. a(href="/project/{{ project_id }}/output/{{ path }}", target="_blank") Download {{ name }}
  174. script(type="text/template")#pdfjsViewerTemplate
  175. .pdfjs-viewer
  176. .pdfjs-list-view
  177. .btn-group
  178. button.btn.btn-info.js-fit-height
  179. img(src="/img/iconshock/fit-to-height.png")
  180. button.btn.btn-info.js-fit-width
  181. img(src="/img/iconshock/fit-to-width.png")
  182. button.btn.btn-info.js-zoom-out
  183. img(src="/img/iconshock/zoom-out.png")
  184. button.btn.btn-info.js-zoom-in
  185. img(src="/img/iconshock/zoom-in.png")
  186. .progress.progress-info
  187. .bar
  188. span Loading
  189. script(type="text/template")#compileSuccessTemplate
  190. li.alert.alert-success
  191. strong No errors.
  192. span Great Job!
  193. script(type="text/template")#compileErrorTemplate
  194. li.alert.alert-error
  195. strong Compile Error:
  196. span Sorry, something went wrong and the project could not be compiled. This may be due to our compiler being overloaded or an incompatibility with the project. Please try again in a few moments and if the problem continues let us know via the feedback tab at the top.
  197. script(type="text/template")#compileFailedTemplate
  198. li.alert.alert-error
  199. strong Ooops, your LaTeX code couldn't compile for some reason. Please check these errors for details:
  200. script(type="text/template")#compileLogEntryTemplate
  201. li.alert.clickable(class="alert-{{ type }}")
  202. strong {{ title }}:
  203. span {{ message }}
  204. .small {{ content }}
  205. script(type="text/template")#projectMemberListTemplate
  206. table.table
  207. thead
  208. tr
  209. th Email
  210. th Privileges
  211. th
  212. tbody
  213. {{#showAdminControls}}
  214. form.well.form-inline.addUserForm
  215. input(type="email",placeholder="someone@email.com")#newEmail.email.input-large
  216. select.privileges.input-medium
  217. option(value="readAndWrite") Read and write
  218. option(value="readOnly") Read Only
  219. button.btn.btn-primary.addUser Add New Collaborator
  220. {{/showAdminControls}}
  221. script(type="text/template")#projectMemberListItemTemplate
  222. tr.projectMember
  223. td.email {{ email }}
  224. td.privileges {{ privileges }}
  225. td
  226. {{#showRemove}}
  227. button(href="#").btn.btn-danger.removeUser Remove
  228. {{/showRemove}}
  229. script(type="text/template")#socialSharingTemplate
  230. .box
  231. .page-header
  232. h2 Share Publicly
  233. link(href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css",rel="stylesheet")
  234. div.share-button
  235. a.btn.btn-twitter.btn-large(href="#")
  236. i.icon-twitter
  237. | &nbsp; Share on Twitter
  238. div.share-button
  239. .btn.btn-facebook.btn-large
  240. i.icon-facebook
  241. | &nbsp; Share on Facebook
  242. div.share-button
  243. .btn.btn-google-plus.btn-large
  244. i.icon-google-plus
  245. | &nbsp; Share on Google+
  246. div.share-button
  247. .btn.btn-large.btn-url
  248. i.icon-link
  249. | &nbsp; Share URL
  250. script(type="text/template")#publishProjectTemplate
  251. -if(session && session.user && session.user.isAdmin)
  252. .box
  253. .page-header
  254. h2 Publish project as template
  255. #publishedAsTemplateArea.show-when-published.alert.alert-success
  256. p
  257. .btn.btn-warning#unPublishProjectAsTemplate.pull-right Unpublish
  258. i.icon-ok
  259. | Your project is currently published.
  260. a#templateLink(href='{{canonicalUrl}}') View in template gallery.
  261. p
  262. | Lastest version: {{publishedDate}}.
  263. #problemWithPublishingArea
  264. p There is a problem with our publishing service, please try again in a few minutes.
  265. #publishWorkingArea
  266. p Working...
  267. div.show-when-published.show-when-unpublished.project-description
  268. label(for="project-description") Description
  269. .row-fluid
  270. textarea(placeholder="Template description", name="project-description").span12#projectDescription {{description}}
  271. #unpublishedAsTemplateArea.show-when-unpublished
  272. .btn.btn-success#publishProjectAsTemplate Publish
  273. p.show-when-published
  274. button.btn.btn-success#republishProjectAsTemplate Re-Publish
  275. script(type="text/template")#settingsPanelTemplate
  276. .fullEditorArea.projectSettings
  277. include project/partials/manage
  278. script(type="text/template")#userPanelTemplate
  279. .fullEditorArea.projectSettings
  280. .box
  281. .page-header
  282. h2 Share Privately (via email)
  283. #projectMembersList
  284. #socialSharing
  285. #publishProject
  286. script(type="text/template")#historyPanelTemplate
  287. #revisionHistoryArea.fullEditorArea
  288. script(type='text/template')#revisionAreaTemplate
  289. #historyAreaWrapper
  290. #historySideBar
  291. .take-snapshot-wrapper
  292. a#take-snapshot.btn.btn-primary Take Snapshot
  293. #versionListArea
  294. #diffViewArea
  295. #enableVersioningMessage
  296. .message History is not yet enabled for this project.
  297. a.btn.btn-primary.btn-large#enableVersioning Enable history
  298. script(type='text/template')#snapshotCommentTemplate
  299. input(type="text", placeholder="Snapshot comment")#snapshotComment
  300. script(type='text/template')#diffTemplate
  301. .diffView
  302. h2 {{ message }}
  303. .date {{ date }}
  304. script(type='text/template')#fileDiffTemplate
  305. .fileHeader
  306. {{#diff}}
  307. {{^deleted}}
  308. ul.nav.nav-pills.pull-right
  309. li.active
  310. a(href="#diff-{{id}}", data-toggle="pill").diff Diff
  311. li
  312. a(href="#raw-{{id}}", data-toggle="pill").raw Raw
  313. {{/deleted}}
  314. {{/diff}}
  315. h3(class="{{headerClass}}") {{path}}
  316. {{#moved}}
  317. .fileMoved Moved to {{newPath}}
  318. {{/moved}}
  319. {{#diff}}
  320. .tab-content
  321. .tab-pane.active.tab-diff(id="diff-{{id}}")
  322. {{#sections}}
  323. table.sectionDiff
  324. {{#lines}}
  325. tr(class="line {{type}}")
  326. {{#added}}
  327. td.old_line_number
  328. td.new_line_number {{new_number}}
  329. td.symbol +
  330. {{/added}}
  331. {{#removed}}
  332. td.old_line_number {{old_number}}
  333. td.new_line_number
  334. td.symbol -
  335. {{/removed}}
  336. {{#unchanged}}
  337. td.old_line_number {{old_number}}
  338. td.new_line_number {{new_number}}
  339. td.symbol
  340. {{/unchanged}}
  341. td.content {{content}}
  342. {{/lines}}
  343. .sectionSeparator
  344. {{/sections}}
  345. .tab-pane.tab-raw(id="raw-{{id}}")
  346. pre.rawFileContent Loading...
  347. {{/diff}}
  348. {{#binary}}
  349. {{^deleted}}
  350. .binaryFileDiff
  351. a(href="{{url}}",target="_blank").rawFileLink View this version of the file
  352. {{/deleted}}
  353. {{/binary}}
  354. script(type='text/template')#versionListItemTemplate
  355. a(href="#")
  356. div(class='version-message') {{message}}
  357. div(class='version-date') {{date}}
  358. script(type='text/template')#versionListTemplate
  359. ul#version-list.nav.nav-pills.nav-stacked
  360. li.loading Loading...
  361. li.empty-message You don't have any versions yet!
  362. script(type='text/template')#fileViewTemplate
  363. {{#image}}
  364. div
  365. img(src='{{ previewUrl }}')
  366. {{/image}}
  367. {{^image}}
  368. .no-preview No preview available :(
  369. {{/image}}
  370. a(href='{{ downloadUrl }}', target="_blank").download.btn.btn-large Download {{ name }}
  371. script(type='text/template')#hotKeysLinkTemplate
  372. div
  373. a(href="#", title='Show Hot Keys List')#hotkeysLink Hot keys
  374. script(type='text/template')#trackChangesPanelTemplate
  375. #trackChangesPanel
  376. .track-changes-side-bar
  377. .track-changes-header
  378. h3 Recent changes
  379. a(href="#").track-changes-close
  380. i.icon-remove
  381. .change-list-area
  382. .track-changes-diff
  383. script(type='text/template')#trackChangesDiffTemplate
  384. .track-changes-diff-toolbar.btn-toolbar
  385. .number-of-changes {{ changes }} in <strong>{{ name }}</strong>
  386. a(href="#").restore.btn.btn-small.btn-danger Restore to before these changes
  387. .track-changes-diff-editor
  388. script(type='text/template')#changeListItemTemplate
  389. div(class='change-selectors')
  390. div.range
  391. input(type="radio",name="fromVersion").change-selector-from
  392. input(type="radio",name="toVersion").change-selector-to
  393. div(class='change-description')
  394. div.changed-docs {{docs}}
  395. div.change-date {{date}}
  396. div {{{users}}}
  397. script(type='text/template')#changeListItemUserTemplate
  398. div(class='change-name')
  399. div.color-square(style="background-color: hsl({{hue}}, 100%, 70%);")
  400. span {{name}}
  401. script(type='text/template')#changeListTemplate
  402. ul.change-list.nav.nav-pills.nav-stacked
  403. li.loading-changes Loading...
  404. li.empty-message You haven't made any changes yet!
  405. script(type='text/template')#hotKeysListTemplate
  406. .hotkeys
  407. h3 Common
  408. .hotkeys-column
  409. .hotkey
  410. span.combination.win Ctrl + F
  411. span.combination.mac Cmd + F
  412. span.description Find (and replace)
  413. .hotkey
  414. span.combination.win Ctrl + Enter
  415. span.combination.mac Cmd + Enter
  416. span.description Compile
  417. .hotkey
  418. span.combination.win Ctrl + /
  419. span.combination.mac Cmd + /
  420. span.description Toggle Comment
  421. .hotkeys-column
  422. .hotkey
  423. span.combination.win Ctrl + Z
  424. span.combination.mac Cmd + Z
  425. span.description Undo
  426. .hotkey
  427. span.combination.win Ctrl + Y
  428. span.combination.mac Cmd + Y
  429. span.description Redo
  430. .clear
  431. h3 Navigation
  432. .hotkeys-column
  433. .hotkey
  434. span.combination.win Ctrl + Home
  435. span.combination.mac Cmd + Home
  436. span.description Beginning of document
  437. .hotkey
  438. span.combination.win Ctrl + End
  439. span.combination.mac Cmd + End
  440. span.description End of document
  441. .hotkeys-column
  442. .hotkey
  443. span.combination.win Ctrl + L
  444. span.combination.mac Cmd + L
  445. span.description Go To Line
  446. .clear
  447. h3 Editing
  448. .hotkeys-column
  449. .hotkey
  450. span.combination.win Ctrl + D
  451. span.combination.mac Cmd + D
  452. span.description Delete Current Line
  453. .hotkey
  454. span.combination.win Ctrl + A
  455. span.combination.mac Cmd + A
  456. span.description Select All
  457. .hotkey
  458. span.combination.win Tab
  459. span.combination.mac Tab
  460. span.description Indent Selection
  461. .hotkeys-column
  462. .hotkey
  463. span.combination.win Ctrl + U
  464. span.combination.mac Ctrl + U
  465. span.description To Uppercase
  466. .hotkey
  467. span.combination.win Ctrl + Shift + U
  468. span.combination.mac Ctrl + Shift + U
  469. span.description To Lowercase
  470. .clear