templates.jade 14 KB

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