templates.jade 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  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')#fileViewTemplate
  316. != '{{#image}}'
  317. div
  318. img(src='{{ previewUrl }}')
  319. != '{{/image}}'
  320. != '{{^image}}'
  321. .no-preview No preview available :(
  322. != '{{/image}}'
  323. a(href='{{ downloadUrl }}', target="_blank").download.btn.btn-large!= 'Download {{ name }}'
  324. script(type='text/template')#hotKeysLinkTemplate
  325. div
  326. a(href="#", title='Show Hot Keys List')#hotkeysLink Hot keys
  327. script(type='text/template')#DebugLinkTemplate
  328. div
  329. a(href="#", title='Show Debug Information')#debugLink Debug
  330. script(type='text/template')#trackChangesPanelTemplate
  331. #trackChangesPanel
  332. .track-changes-side-bar
  333. .track-changes-header
  334. h3 Recent changes
  335. a(href="#").track-changes-close
  336. i.icon-remove
  337. .change-list-area
  338. .track-changes-diff
  339. .track-changes-upgrade-popup(style="display: none;")
  340. .message.show-when-owner
  341. p You need to upgrade your plan to use the History feature.
  342. button.btn.btn-primary.start-free-trial Start free trial
  343. .message.show-when-not-owner
  344. p Please ask the project owner to upgrade to use the History feature.
  345. script(type='text/template')#trackChangesDiffTemplate
  346. .track-changes-diff-toolbar.btn-toolbar
  347. .change-info
  348. .number-of-changes {{ changes }} in <strong>{{ name }}</strong>
  349. a(href="#").restore.btn.btn-small.btn-danger Restore to before these changes
  350. .deleted-info(style="display:none;")
  351. strong {{ name }}
  352. .controls
  353. span This file has been deleted
  354. a(href="#").restore-deleted.btn.btn-small.btn-success Restore
  355. .track-changes-diff-editor
  356. script(type='text/template')#changeListItemTemplate
  357. div.track-changes-date-header {{ day }}
  358. div.change-selectors
  359. div.range
  360. input(type="radio",name="fromVersion").change-selector-from
  361. input(type="radio",name="toVersion").change-selector-to
  362. div.change-description
  363. div.change-time {{time}}
  364. div.changed-docs {{docs}}
  365. div {{{users}}}
  366. script(type='text/template')#changeListItemUserTemplate
  367. div(class='change-name')
  368. div.color-square(style="background-color: hsl({{hue}}, 100%, 70%);")
  369. span {{name}}
  370. script(type='text/template')#changeListTemplate
  371. ul.change-list.nav.nav-pills.nav-stacked
  372. li.loading-changes Loading...
  373. li.empty-message You haven't made any changes yet!
  374. script(type='text/template')#hotKeysListTemplate
  375. .hotkeys
  376. h3 Common
  377. .hotkeys-column
  378. .hotkey
  379. span.combination.win Ctrl + F
  380. span.combination.mac Cmd + F
  381. span.description Find (and replace)
  382. .hotkey
  383. span.combination.win Ctrl + Enter
  384. span.combination.mac Cmd + Enter
  385. span.description Compile
  386. .hotkey
  387. span.combination.win Ctrl + /
  388. span.combination.mac Cmd + /
  389. span.description Toggle Comment
  390. .hotkeys-column
  391. .hotkey
  392. span.combination.win Ctrl + Z
  393. span.combination.mac Cmd + Z
  394. span.description Undo
  395. .hotkey
  396. span.combination.win Ctrl + Y
  397. span.combination.mac Cmd + Y
  398. span.description Redo
  399. .clear
  400. h3 Navigation
  401. .hotkeys-column
  402. .hotkey
  403. span.combination.win Ctrl + Home
  404. span.combination.mac Cmd + Home
  405. span.description Beginning of document
  406. .hotkey
  407. span.combination.win Ctrl + End
  408. span.combination.mac Cmd + End
  409. span.description End of document
  410. .hotkeys-column
  411. .hotkey
  412. span.combination.win Ctrl + L
  413. span.combination.mac Cmd + L
  414. span.description Go To Line
  415. .clear
  416. h3 Editing
  417. .hotkeys-column
  418. .hotkey
  419. span.combination.win Ctrl + D
  420. span.combination.mac Cmd + D
  421. span.description Delete Current Line
  422. .hotkey
  423. span.combination.win Ctrl + A
  424. span.combination.mac Cmd + A
  425. span.description Select All
  426. .hotkey
  427. span.combination.win Tab
  428. span.combination.mac Tab
  429. span.description Indent Selection
  430. .hotkeys-column
  431. .hotkey
  432. span.combination.win Ctrl + U
  433. span.combination.mac Ctrl + U
  434. span.description To Uppercase
  435. .hotkey
  436. span.combination.win Ctrl + Shift + U
  437. span.combination.mac Ctrl + Shift + U
  438. span.description To Lowercase
  439. .clear