You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

386 lines
20 KiB

11 years ago
10 years ago
10 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <% uiIntroduction = @getCollection("documents").findAll({type: $in: ['UI Introduction']},[{title: 1}]).toJSON() %>
  5. <% uiProject = @getCollection("documents").findAll({type: $in: ['Semantic Project']},[{title: 1}]).toJSON() %>
  6. <% uiGuide = @getCollection("documents").findAll({type: $in: ['UI Guide']},[{title: 1}]).toJSON() %>
  7. <% uiGlobals = @getCollection("documents").findAll({type: $in: ['UI Global']},[{title: 1}]).toJSON() %>
  8. <% uiElements = @getCollection("documents").findAll({type: $in: ['UI Element']},[{title: 1}]).toJSON() %>
  9. <% uiCollections = @getCollection("documents").findAll({type: $in: ['UI Collection']},[{title: 1}]).toJSON() %>
  10. <% uiViews = @getCollection("documents").findAll({type: $in: ['UI View']},[{title: 1}]).toJSON() %>
  11. <% uiModules = @getCollection("documents").findAll({type: $in: ['UI Module']},[{title: 1}]).toJSON() %>
  12. <% uiBehavior = @getCollection("documents").findAll({type: $in: ['UI Behavior']},[{title: 1}]).toJSON() %>
  13. <% uiSpecification = @getCollection("documents").findAll({type: $in: ['UI Specification']},[{title: 1}]).toJSON() %>
  14. <% currentCollection = @getCollection("documents").findAll({type: $in: [@document.type]},[{title: 1}]).toJSON() %>
  15. <% pageCount = @pageCount(currentCollection) %>
  16. <% pageNumber = @getPage(currentCollection, @document.id) %>
  17. <% pageCollection = @getPageCollection(currentCollection, @document.id) %>
  18. <!-- Standard Meta -->
  19. <meta charset="utf-8" />
  20. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  21. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  22. <link rel="image_src" type="image/jpeg" href="/images/logo.png" />
  23. <!-- Site Properities -->
  24. <%- @getBlock('meta').toHTML() %>
  25. <title><%= @getPreparedTitle() %></title>
  26. <meta name="description" content="<%= @getPreparedDescription() %>" />
  27. <meta name="keywords" content="<%= @getPreparedKeywords() %>" />
  28. <% if 'development' in @getEnvironments(): %>
  29. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/reset.css">
  30. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/site.css">
  31. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/icon.css">
  32. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/button.css">
  33. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/divider.css">
  34. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/flag.css">
  35. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/header.css">
  36. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/image.css">
  37. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/input.css">
  38. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/label.css">
  39. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/list.css">
  40. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/loader.css">
  41. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/rail.css">
  42. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/reveal.css">
  43. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/segment.css">
  44. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/step.css">
  45. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/breadcrumb.css">
  46. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/form.css">
  47. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/grid.css">
  48. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/menu.css">
  49. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/message.css">
  50. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/table.css">
  51. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/card.css">
  52. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/comment.css">
  53. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/feed.css">
  54. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/item.css">
  55. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/statistic.css">
  56. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/modal.css">
  57. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/accordion.css">
  58. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dropdown.css">
  59. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/nag.css">
  60. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/popup.css">
  61. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/progress.css">
  62. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/rating.css">
  63. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sidebar.css">
  64. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/search.css">
  65. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/shape.css">
  66. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sticky.css">
  67. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/tab.css">
  68. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/checkbox.css">
  69. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dimmer.css">
  70. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/transition.css">
  71. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/video.css">
  72. <% else: %>
  73. <link rel="stylesheet" type="text/css" class="ui" href="/build/packaged/definitions/css/semantic.min.css">
  74. <% end %>
  75. <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,700italic' rel='stylesheet' type='text/css'>
  76. <link rel="stylesheet" type="text/css" href="/stylesheets/doc-icon.css">
  77. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  78. <% if 'development' in @getEnvironments(): %>
  79. <script>
  80. (function () {
  81. var
  82. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  83. jsonSupport = (typeof JSON !== 'undefined'),
  84. jQuery = (eventSupport && jsonSupport)
  85. ? '/javascript/library/jquery.js'
  86. : '/javascript/library/jquery.legacy.js'
  87. ;
  88. document.write('<script src="' + jQuery + '"><\/script>');
  89. }());
  90. </script>
  91. <% else: %>
  92. <script>
  93. (function () {
  94. var
  95. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  96. jsonSupport = (typeof JSON !== 'undefined'),
  97. jQuery = (eventSupport && jsonSupport)
  98. ? '/javascript/library/jquery.min.js'
  99. : '/javascript/library/jquery.legacy.min.js'
  100. ;
  101. document.write('<script src="' + jQuery + '"><\/script>');
  102. }());
  103. </script>
  104. <% end %>
  105. <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/highlight.min.js"></script>
  106. <script src="/javascript/library/history.js"></script>
  107. <script src="/javascript/library/easing.js"></script>
  108. <script src="/javascript/library/tablesort.js"></script>
  109. <script src="/javascript/library/typing.js"></script>
  110. <% if 'development' in @getEnvironments(): %>
  111. <script src="/build/uncompressed/definitions/globals/site.js"></script>
  112. <script src="/build/uncompressed/definitions/behaviors/api.js"></script>
  113. <script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
  114. <script src="/build/uncompressed/definitions/behaviors/state.js"></script>
  115. <script src="/build/uncompressed/definitions/modules/accordion.js"></script>
  116. <script src="/build/uncompressed/definitions/modules/checkbox.js"></script>
  117. <script src="/build/uncompressed/definitions/modules/dimmer.js"></script>
  118. <script src="/build/uncompressed/definitions/modules/dropdown.js"></script>
  119. <script src="/build/uncompressed/definitions/modules/modal.js"></script>
  120. <script src="/build/uncompressed/definitions/modules/nag.js"></script>
  121. <script src="/build/uncompressed/definitions/modules/popup.js"></script>
  122. <script src="/build/uncompressed/definitions/modules/progress.js"></script>
  123. <script src="/build/uncompressed/definitions/modules/rating.js"></script>
  124. <script src="/build/uncompressed/definitions/modules/search.js"></script>
  125. <script src="/build/uncompressed/definitions/modules/shape.js"></script>
  126. <script src="/build/uncompressed/definitions/modules/sidebar.js"></script>
  127. <script src="/build/uncompressed/definitions/modules/sticky.js"></script>
  128. <script src="/build/uncompressed/definitions/modules/tab.js"></script>
  129. <script src="/build/uncompressed/definitions/modules/transition.js"></script>
  130. <script src="/build/uncompressed/definitions/modules/video.js"></script>
  131. <% else: %>
  132. <script src="/build/packaged/definitions/javascript/semantic.min.js"></script>
  133. <% end %>
  134. <script src="/javascript/semantic.js"></script>
  135. <script>
  136. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  137. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  138. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  139. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  140. ga('create', 'UA-44039803-2', 'auto');
  141. ga('send', 'pageview');
  142. </script>
  143. <script type="text/javascript">
  144. window.liveSettings = {
  145. api_key : '9ede3015b9f84c1aabc81ab839c55d74',
  146. parse_attr : [
  147. 'data-title',
  148. 'data-content'
  149. ],
  150. detectlang : true,
  151. autocollect : true,
  152. ignore_tags : ['i'],
  153. parse_attr : ['data-title', 'data-content', 'data-text'],
  154. ignore_class : ["code", "anchor"]
  155. };
  156. </script>
  157. <script type="text/javascript" src="http://cdn.transifex.com/live.js"></script>
  158. </head>
  159. <body id="example" class="pushable <%= @document.css %>" ontouchstart="">
  160. <div class="ui vertical inverted labeled icon sidebar menu" id="menu">
  161. <a class="hide item">
  162. <i class="close icon"></i> Close Menu
  163. </a>
  164. <div class="item">
  165. <a class="ui logo icon image" href="/">
  166. <img src="/images/logo.png">
  167. </a>
  168. UI Docs
  169. </div>
  170. <a class="item" href="/build/semantic.zip">
  171. <i class="download icon"></i> <b>Download</b>
  172. </a>
  173. <div class="item">
  174. <div class="ui small <%= if @document.elementType is 'global' then 'active ' %> inverted header">Globals</div>
  175. <div class="menu">
  176. <% for element in uiGlobals: %>
  177. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  178. <%= element.title %>
  179. <% if element.status?: %>
  180. <span class="ui mini empty yellow circular ui label"></span>
  181. <% end %>
  182. </a>
  183. <% end %>
  184. </div>
  185. </div>
  186. <div class="item">
  187. <div class="ui small <%= if @document.elementType is 'element' then 'active ' %> inverted header">Elements</div>
  188. <div class="menu">
  189. <% for element in uiElements: %>
  190. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  191. <%= element.title %>
  192. <% if element.status?: %>
  193. <span class="ui mini empty yellow circular ui label"></span>
  194. <% end %>
  195. </a>
  196. <% end %>
  197. </div>
  198. </div>
  199. <div class="item">
  200. <div class="ui small <%= if @document.elementType is 'collection' then 'active ' %> inverted header">Collections</div>
  201. <div class="menu">
  202. <% for element in uiCollections: %>
  203. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  204. <%= element.title %>
  205. <% if element.status?: %>
  206. <span class="ui mini empty yellow circular ui label"></span>
  207. <% end %>
  208. </a>
  209. <% end %>
  210. </div>
  211. </div>
  212. <div class="item">
  213. <div class="ui small <%= if @document.elementType is 'view' then 'active ' %> inverted header">Views</div>
  214. <div class="menu">
  215. <% for element in uiViews: %>
  216. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  217. <%= element.title %>
  218. <% if element.status?: %>
  219. <span class="ui mini empty yellow circular ui label"></span>
  220. <% end %>
  221. </a>
  222. <% end %>
  223. </div>
  224. </div>
  225. <div class="item">
  226. <a href="/module.html" class="ui small <%= if @document.elementType is 'module' then 'active ' %> inverted header">Modules</a>
  227. <div class="menu">
  228. <% for element in uiModules: %>
  229. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  230. <%= element.title %>
  231. <% if element.status?: %>
  232. <span class="ui mini empty yellow circular ui label"></span>
  233. <% end %>
  234. </a>
  235. <% end %>
  236. </div>
  237. </div>
  238. <div class="item">
  239. <div class="ui small <%= if @document.elementType is 'behavior' then 'active ' %> inverted header">Behaviors</div>
  240. <div class="menu">
  241. <% for element in uiBehavior: %>
  242. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  243. <%= element.title %>
  244. <% if element.status?: %>
  245. <span class="ui mini empty yellow circular ui label"></span>
  246. <% end %>
  247. </a>
  248. <% end %>
  249. </div>
  250. </div>
  251. </div>
  252. <div class="ui fixed inverted main menu">
  253. <div class="container">
  254. <a class="launch item"><i class="content icon"></i></a>
  255. <div class="title item">
  256. <b><%= @document.type %>:</b> <%= @document.title %>
  257. </div>
  258. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  259. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left chevron icon"></i></a>
  260. <% else: %>
  261. <div class="disabled icon item"><i class="left chevron icon"></i></div>
  262. <% end %>
  263. <div class="section ui page dropdown link item">
  264. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  265. <div class="menu">
  266. <% for element, index in currentCollection: %>
  267. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  268. <%= element.title %>
  269. </a>
  270. <% end %>
  271. </div>
  272. </div>
  273. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  274. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right chevron icon"></i></a>
  275. <% else: %>
  276. <div class="disabled icon item"><i class="right chevron icon"></i></div>
  277. <% end %>
  278. <div class="right menu">
  279. <div class="vertically fitted borderless item">
  280. <iframe src="http://ghbtns.com/github-btn.html?user=semantic-org&repo=semantic-ui&type=watch&count=true"
  281. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  282. </div>
  283. <a class="popup icon github item" data-content="View project on GitHub" href="https://github.com/quirkyinc/semantic">
  284. <i class="alternate github icon"></i>
  285. </a>
  286. <div class="ui language dropdown item" id="languages" data-content="Select Language">
  287. <i class="world icon"></i>
  288. <%- @partial('languages') %>
  289. </div>
  290. </div>
  291. </div>
  292. </div>
  293. <div class="ui black big launch right attached fixed button">
  294. <i class="content icon"></i>
  295. <span class="text">Menu</span>
  296. </div>
  297. <div class="pusher">
  298. <div class="page">
  299. <div class="full height">
  300. <%- @content %>
  301. </div>
  302. <div class="ui vertical inverted black footer segment">
  303. <div class="container">
  304. <div class="ui stackable inverted divided relaxed grid">
  305. <div class="eight wide column">
  306. <h3 class="ui inverted header">Help Keep Semantic UI Alive</h3>
  307. <p>Maintaining an open source UI library is no small task. Support for the continued development of Semantic UI comes directly from the community.</p>
  308. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  309. <input type="hidden" name="cmd" value="_s-xclick">
  310. <input type="hidden" name="hosted_button_id" value="7ZAF2Q8DBZAQL">
  311. <button type="submit" class="ui teal button">Donate Today</button>
  312. </form>
  313. </div>
  314. <div class="four wide column">
  315. <h5 class="ui teal inverted header">Contribute</h5>
  316. <div class="ui inverted link list">
  317. <a class="item" href="mailto:jack@semantic-ui.com?subject=Help Translating">Translate</a>
  318. <a class="item" href="https://github.com/Semantic-Org/Semantic-UI" target="_blank">Issue Tracker</a>
  319. <a class="item" href="/cla.html" target="_blank">CLA</a>
  320. <a class="disabled item">Create Themes</a>
  321. </div>
  322. </div>
  323. <div class="four wide column">
  324. <h5 class="ui teal inverted header">Semantic Network</h5>
  325. <div class="ui inverted link list">
  326. <a class="item" href="https://www.transifex.com/projects/p/semantic-ui-beta/" target="_blank">Translation Hub</a>
  327. <a class="disabled item">Semantic UI</a>
  328. <a class="disabled item">Learn Semantic</a>
  329. <a class="disabled item">Semantic Themes</a>
  330. </div>
  331. </div>
  332. </div>
  333. </div>
  334. </div>
  335. </div>
  336. </div>
  337. <div class="ui basic language modal">
  338. <i class="close icon"></i>
  339. <div class="header">The <span class="name"></span> Translation Needs Your Help</div>
  340. <div class="content">
  341. <div class="middle aligned image">
  342. <i class="world icon"></i>
  343. </div>
  344. <div class="description">
  345. <p>This translation is only <b><span class="complete"></span>%</b> complete!</p>
  346. <div class="ui inverted indicating progress">
  347. <div class="bar"></div>
  348. </div>
  349. <p>We need your help to make Semantic available to people who speak your language.</p>
  350. <p>Our translation tools are easy to use and allow you to translate text without having to leave the site. If you are interested in joining our translation team please <a href="mailto:jack@semantic-ui.com?subject=Localization%20Help">e-mail me</a> for access to our translation hub.
  351. </p>
  352. </div>
  353. </div>
  354. <div class="actions">
  355. <div class="ui inverted cancel button">No Thanks</div>
  356. <a href="mailto:jack@semantic-ui.com?subject=Localization%20Help" target="_blank" class="ui inverted approve teal button">
  357. <i class="mail icon"></i>
  358. Help Translate
  359. </a>
  360. </div>
  361. </div>
  362. <script src="/javascript/library/less.js"></script>
  363. </body>
  364. </html>