templates.jade 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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. .entity-label.label.label-success
  64. script(type="text/template")#folderTemplate
  65. .entity-list-item(class="entity-{{ type }}", entity-type="{{ type }}", id="{{ id }}")
  66. .toggle.js-toggle
  67. img(src="/img/nide/right-arrow.png").js-closed
  68. img(src="/img/nide/down-arrow.png").js-open
  69. .clickable.js-clickable
  70. i(class="sprite-{{ type }}")
  71. span.name {{ name }}
  72. input.rename.js-rename
  73. .dropdown-caret
  74. i.icon-chevron-down
  75. .entity-label.label.label-success
  76. script(type="text/template")#deletedDocsFolderTemplate
  77. .entity-list-item.entity-deleted-docs-folder(class="entity-{{ type }}", entity-type="{{ type }}", id="{{ id }}")
  78. .clickable.js-clickable
  79. span.name {{ name }}
  80. .entity-label.label.label-success
  81. script(type="text/template")#entityListTemplate
  82. .contents
  83. .entity-list(id="{{ id }}-file-list")
  84. script(type="text/template")#newEntityModalTemplate
  85. div
  86. input.inputmodal(placeholder="name")
  87. script(type="text/template")#messageTemplate
  88. .chatMessage
  89. span.name {{name}}
  90. span :
  91. span.message {{message}}
  92. script(type="text/template")#spellingMenuTemplate
  93. div.btn-group.spell-check-menu
  94. a.btn.dropdown-toggle(data-toggle="dropdown", href="#")
  95. span.underlined Ab
  96. ul.dropdown-menu.pull-right
  97. li.divider
  98. li
  99. a#learnWord(href="#") Learn word
  100. script(type="text/template")#spellingMenuEntryTemplate
  101. li.spelling-suggestion
  102. a(href="#") {{word}}
  103. script(type="text/template")#contextMenuTemplate
  104. ul.dropdown-menu.context-menu
  105. script(type="text/template")#contextMenuEntryTemplate
  106. li
  107. a(href="#") {{text}}
  108. script(type="text/template")#contextMenuDividerTemplate
  109. li.divider
  110. script(type="text/template")#genericModalTemplate
  111. .modal
  112. .modal-header
  113. h3 {{ title }}
  114. .modal-body
  115. .message {{{ message }}}
  116. .creditCardFreeTrialModal
  117. .modal-footer
  118. script(type="text/template")#creditCardFreeTrialModal
  119. .modal
  120. .modal-header
  121. h3 {{ title }}
  122. .modal-body
  123. #subscribeForm
  124. .modal-footer
  125. script(type="text/template")#genericModalButtonTemplate
  126. button(class="btn {{ class }}") {{ text }}
  127. script(type="text/template")#editorPanelTemplate
  128. #editorArea(style='display: none;')
  129. #editorSplitter
  130. #leftEditorPanel.ui-layout-center
  131. #editorWrapper
  132. #editor
  133. #undoConflictWarning(style="display: none")
  134. | <strong>Watch out!</strong> We had to undo some of your collaborators changes before we could undo yours.
  135. a(href="#").js-hide Hide
  136. #rightEditorPanel.ui-layout-east
  137. script(type="text/template")#loadingIndicatorTemplate
  138. .loading
  139. script(type="text/template")#pdfSideBarLinkTemplate
  140. ul
  141. li.root.project#pdf(title='Show PDF', alt='pdf')
  142. img(src='/img/pdf.png')
  143. span PDF
  144. script(type="text/template")#helpLinkTemplate
  145. div
  146. a(href="#", title="LaTeX Help") LaTeX Help
  147. script(type="text/template")#editorTourTemplate
  148. div
  149. a(href="#", title="Editor Tour")#editorTourLink Editor Tour
  150. script(type="text/template")#pdfPanelTemplate
  151. #pdfArea(style='display: none;').fullEditorArea
  152. #pdfToolBar.btn-toolbar
  153. .btn-group
  154. button#recompilePdf.btn.btn-success(type='button') Recompile
  155. .btn-group#showLogGroup
  156. button#showLog.btn Logs
  157. .btn-group#showPdfGroup
  158. button#showPdf.btn Back to PDF
  159. .btn-group
  160. button#downloadPdf.btn Download
  161. button#downloadLinksButton.btn.dropdown-toggle(data-toggle="dropdown")
  162. span.caret
  163. ul.dropdown-menu
  164. #downloadLinks
  165. li.divider
  166. li.delete-cached-files
  167. a(href="#") Clear cached files
  168. .btn-group.pull-right(data-toggle="buttons-radio")
  169. button(type="button", title="Flat view")#flatViewButton.btn
  170. i.icon-flatview
  171. button(type="button", title="Split view")#splitViewButton.btn
  172. i.icon-splitview
  173. #pdfAreaContent
  174. .not-compiled-yet-message
  175. | Click here to preview your work as a PDF.
  176. .compiling-message(style='display: none;') Compiling...
  177. #logArea(style='display: none;')
  178. ul
  179. button.btn.btn-info.btn-large#showRawLog Show Raw Logs
  180. #rawLogArea(style='display: none;')
  181. pre
  182. script(type="text/template")#syncButtonsTemplate
  183. div.sync-buttons
  184. button.btn.sync-code-to-pdf &rarr;
  185. button.btn.sync-pdf-to-code &larr;
  186. script(type="text/template")#outputFileLinkTemplate
  187. li
  188. a(href="/project/{{ project_id }}/output/{{ path }}", target="_blank") Download {{ name }}
  189. script(type="text/template")#pdfjsViewerTemplate
  190. .pdfjs-viewer
  191. .pdfjs-list-view
  192. .btn-group
  193. button.btn.btn-info.js-fit-height
  194. img(src="/img/iconshock/fit-to-height.png")
  195. button.btn.btn-info.js-fit-width
  196. img(src="/img/iconshock/fit-to-width.png")
  197. button.btn.btn-info.js-zoom-out
  198. img(src="/img/iconshock/zoom-out.png")
  199. button.btn.btn-info.js-zoom-in
  200. img(src="/img/iconshock/zoom-in.png")
  201. .progress.progress-info
  202. .bar
  203. span Loading
  204. script(type="text/template")#compileSuccessTemplate
  205. li.alert.alert-success
  206. strong No errors.
  207. span Great Job!
  208. script(type="text/template")#compileErrorTemplate
  209. li.alert.alert-error
  210. p
  211. strong Server Error.
  212. span Sorry, something went wrong and the project could not be compiled. Please try again in a few moments.
  213. p
  214. | If the problem persists, try
  215. a(href='#').js-clear-cache clearing the cache.
  216. | If that doesn't work, please contact support.
  217. script(type="text/template")#compileFailedTemplate
  218. li.alert.alert-error
  219. p
  220. strong Compile Error.
  221. span Sorry, your LaTeX code couldn't compile for some reason. Please check the errors below for details, or view the raw log.
  222. p
  223. | If the problem persists, try
  224. a(href='#').js-clear-cache clearing the cache.
  225. script(type="text/template")#compileTimeoutTemplate
  226. li.alert.alert-error
  227. strong Timed out.
  228. span Sorry, your compile was taking too long and timed out.
  229. | This may be due to a large number of high-res images, or lots of complicated diagrams.
  230. | Please try to make your document simpler, or contact support for help.
  231. script(type="text/template")#compileLogEntryTemplate
  232. li.alert.clickable(class="alert-{{ type }}")
  233. strong {{ title }}:
  234. span {{ message }}
  235. .small {{ content }}
  236. script(type="text/template")#projectMemberListTemplate
  237. table.table
  238. thead
  239. tr
  240. th Email
  241. th Privileges
  242. th
  243. tbody
  244. {{#showAdminControls}}
  245. form.well.form-inline.addUserForm
  246. input(type="email",placeholder="someone@email.com")#newEmail.email.input-large
  247. select.privileges.input-medium
  248. option(value="readAndWrite") Read and write
  249. option(value="readOnly") Read Only
  250. button.btn.btn-primary.addUser Add New Collaborator
  251. {{/showAdminControls}}
  252. script(type="text/template")#projectMemberListItemTemplate
  253. tr.projectMember
  254. td.email {{ email }}
  255. td.privileges {{ privileges }}
  256. td
  257. {{#showRemove}}
  258. button(href="#").btn.btn-danger.removeUser Remove
  259. {{/showRemove}}
  260. script(type="text/template")#socialSharingTemplate
  261. .box
  262. .page-header
  263. h2 Share Publicly
  264. div.share-button
  265. a.btn.btn-twitter.btn-large(href="#")
  266. i.icon-twitter
  267. | &nbsp; Share on Twitter
  268. div.share-button
  269. .btn.btn-facebook.btn-large
  270. i.icon-facebook
  271. | &nbsp; Share on Facebook
  272. div.share-button
  273. .btn.btn-google-plus.btn-large
  274. i.icon-google-plus
  275. | &nbsp; Share on Google+
  276. div.share-button
  277. .btn.btn-large.btn-url
  278. i.icon-link
  279. | &nbsp; Share URL
  280. script(type="text/template")#publishProjectTemplate
  281. .box
  282. .page-header
  283. h2 Publish project as template
  284. #publishedAsTemplateArea.show-when-published.alert.alert-success
  285. p
  286. .btn.btn-warning#unPublishProjectAsTemplate.pull-right Unpublish
  287. i.icon-ok
  288. | Your project is currently published.
  289. a#templateLink(href='{{canonicalUrl}}') View in template gallery.
  290. p
  291. | Lastest version: {{publishedDate}}.
  292. #problemWithPublishingArea
  293. p There is a problem with our publishing service, please try again in a few minutes.
  294. #publishWorkingArea
  295. p Working...
  296. div.show-when-published.show-when-unpublished.project-description
  297. label(for="project-description") Description
  298. .row-fluid
  299. textarea(placeholder="Template description", name="project-description").span12#projectDescription {{description}}
  300. #unpublishedAsTemplateArea.show-when-unpublished
  301. .btn.btn-success#publishProjectAsTemplate Publish
  302. p.show-when-published
  303. button.btn.btn-success#republishProjectAsTemplate Re-Publish
  304. script(type="text/template")#settingsPanelTemplate
  305. .fullEditorArea.projectSettings
  306. include project/partials/manage
  307. script(type="text/template")#userPanelTemplate
  308. .fullEditorArea.projectSettings
  309. .box
  310. .page-header
  311. h2 Share Privately (via email)
  312. #projectMembersList
  313. #socialSharing
  314. #publishProject
  315. script(type="text/template")#historyPanelTemplate
  316. #revisionHistoryArea.fullEditorArea
  317. script(type='text/template')#revisionAreaTemplate
  318. #historyAreaWrapper
  319. #historySideBar
  320. .take-snapshot-wrapper
  321. a#take-snapshot.btn.btn-primary Take Snapshot
  322. #versionListArea
  323. #diffViewArea
  324. #enableVersioningMessage
  325. .message History is not yet enabled for this project.
  326. a.btn.btn-primary.btn-large#enableVersioning Enable history
  327. script(type='text/template')#snapshotCommentTemplate
  328. input(type="text", placeholder="Snapshot comment")#snapshotComment
  329. script(type='text/template')#diffTemplate
  330. .diffView
  331. h2 {{ message }}
  332. .date {{ date }}
  333. script(type='text/template')#fileDiffTemplate
  334. .fileHeader
  335. {{#diff}}
  336. {{^deleted}}
  337. ul.nav.nav-pills.pull-right
  338. li.active
  339. a(href="#diff-{{id}}", data-toggle="pill").diff Diff
  340. li
  341. a(href="#raw-{{id}}", data-toggle="pill").raw Raw
  342. {{/deleted}}
  343. {{/diff}}
  344. h3(class="{{headerClass}}") {{path}}
  345. {{#moved}}
  346. .fileMoved Moved to {{newPath}}
  347. {{/moved}}
  348. {{#diff}}
  349. .tab-content
  350. .tab-pane.active.tab-diff(id="diff-{{id}}")
  351. {{#sections}}
  352. table.sectionDiff
  353. {{#lines}}
  354. tr(class="line {{type}}")
  355. {{#added}}
  356. td.old_line_number
  357. td.new_line_number {{new_number}}
  358. td.symbol +
  359. {{/added}}
  360. {{#removed}}
  361. td.old_line_number {{old_number}}
  362. td.new_line_number
  363. td.symbol -
  364. {{/removed}}
  365. {{#unchanged}}
  366. td.old_line_number {{old_number}}
  367. td.new_line_number {{new_number}}
  368. td.symbol
  369. {{/unchanged}}
  370. td.content {{content}}
  371. {{/lines}}
  372. .sectionSeparator
  373. {{/sections}}
  374. .tab-pane.tab-raw(id="raw-{{id}}")
  375. pre.rawFileContent Loading...
  376. {{/diff}}
  377. {{#binary}}
  378. {{^deleted}}
  379. .binaryFileDiff
  380. a(href="{{url}}",target="_blank").rawFileLink View this version of the file
  381. {{/deleted}}
  382. {{/binary}}
  383. script(type='text/template')#versionListItemTemplate
  384. a(href="#")
  385. div(class='version-message') {{message}}
  386. div(class='version-date') {{date}}
  387. script(type='text/template')#versionListTemplate
  388. ul#version-list.nav.nav-pills.nav-stacked
  389. li.loading Loading...
  390. li.empty-message You don't have any versions yet!
  391. script(type='text/template')#fileViewTemplate
  392. {{#image}}
  393. div
  394. img(src='{{ previewUrl }}')
  395. {{/image}}
  396. {{^image}}
  397. .no-preview No preview available :(
  398. {{/image}}
  399. a(href='{{ downloadUrl }}', target="_blank").download.btn.btn-large Download {{ name }}
  400. script(type='text/template')#hotKeysLinkTemplate
  401. div
  402. a(href="#", title='Show Hot Keys List')#hotkeysLink Hot keys
  403. script(type='text/template')#DebugLinkTemplate
  404. div
  405. a(href="#", title='Show Debug Information')#debugLink Debug
  406. script(type='text/template')#trackChangesPanelTemplate
  407. #trackChangesPanel
  408. .track-changes-side-bar
  409. .track-changes-header
  410. h3 Recent changes
  411. a(href="#").track-changes-close
  412. i.icon-remove
  413. .change-list-area
  414. .track-changes-diff
  415. .track-changes-upgrade-popup(style="display: none;")
  416. .message.show-when-owner
  417. p You need to upgrade your plan to use the History feature.
  418. button.btn.btn-primary.start-free-trial Start free trial
  419. .message.show-when-not-owner
  420. p Please ask the project owner to upgrade to use the History feature.
  421. script(type='text/template')#trackChangesDiffTemplate
  422. .track-changes-diff-toolbar.btn-toolbar
  423. .change-info
  424. .number-of-changes {{ changes }} in <strong>{{ name }}</strong>
  425. a(href="#").restore.btn.btn-small.btn-danger Restore to before these changes
  426. .deleted-info(style="display:none;")
  427. strong {{ name }}
  428. .controls
  429. span This file has been deleted
  430. a(href="#").restore-deleted.btn.btn-small.btn-success Restore
  431. .track-changes-diff-editor
  432. script(type='text/template')#changeListItemTemplate
  433. div.track-changes-date-header {{ day }}
  434. div.change-selectors
  435. div.range
  436. input(type="radio",name="fromVersion").change-selector-from
  437. input(type="radio",name="toVersion").change-selector-to
  438. div.change-description
  439. div.change-time {{time}}
  440. div.changed-docs {{docs}}
  441. div {{{users}}}
  442. script(type='text/template')#changeListItemUserTemplate
  443. div(class='change-name')
  444. div.color-square(style="background-color: hsl({{hue}}, 100%, 70%);")
  445. span {{name}}
  446. script(type='text/template')#changeListTemplate
  447. ul.change-list.nav.nav-pills.nav-stacked
  448. li.loading-changes Loading...
  449. li.empty-message You haven't made any changes yet!
  450. script(type='text/template')#hotKeysListTemplate
  451. .hotkeys
  452. h3 Common
  453. .hotkeys-column
  454. .hotkey
  455. span.combination.win Ctrl + F
  456. span.combination.mac Cmd + F
  457. span.description Find (and replace)
  458. .hotkey
  459. span.combination.win Ctrl + Enter
  460. span.combination.mac Cmd + Enter
  461. span.description Compile
  462. .hotkey
  463. span.combination.win Ctrl + /
  464. span.combination.mac Cmd + /
  465. span.description Toggle Comment
  466. .hotkeys-column
  467. .hotkey
  468. span.combination.win Ctrl + Z
  469. span.combination.mac Cmd + Z
  470. span.description Undo
  471. .hotkey
  472. span.combination.win Ctrl + Y
  473. span.combination.mac Cmd + Y
  474. span.description Redo
  475. .clear
  476. h3 Navigation
  477. .hotkeys-column
  478. .hotkey
  479. span.combination.win Ctrl + Home
  480. span.combination.mac Cmd + Home
  481. span.description Beginning of document
  482. .hotkey
  483. span.combination.win Ctrl + End
  484. span.combination.mac Cmd + End
  485. span.description End of document
  486. .hotkeys-column
  487. .hotkey
  488. span.combination.win Ctrl + L
  489. span.combination.mac Cmd + L
  490. span.description Go To Line
  491. .clear
  492. h3 Editing
  493. .hotkeys-column
  494. .hotkey
  495. span.combination.win Ctrl + D
  496. span.combination.mac Cmd + D
  497. span.description Delete Current Line
  498. .hotkey
  499. span.combination.win Ctrl + A
  500. span.combination.mac Cmd + A
  501. span.description Select All
  502. .hotkey
  503. span.combination.win Tab
  504. span.combination.mac Tab
  505. span.description Indent Selection
  506. .hotkeys-column
  507. .hotkey
  508. span.combination.win Ctrl + U
  509. span.combination.mac Ctrl + U
  510. span.description To Uppercase
  511. .hotkey
  512. span.combination.win Ctrl + Shift + U
  513. span.combination.mac Ctrl + Shift + U
  514. span.description To Lowercase
  515. .clear