templates.jade 16 KB

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