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.

296 lines
16 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. <% uiElements = @getCollection("documents").findAll({type: $in: ['UI Element']},[{title: 1}]).toJSON() %>
  8. <% uiCollections = @getCollection("documents").findAll({type: $in: ['UI Collection']},[{title: 1}]).toJSON() %>
  9. <% uiViews = @getCollection("documents").findAll({type: $in: ['UI View']},[{title: 1}]).toJSON() %>
  10. <% uiModules = @getCollection("documents").findAll({type: $in: ['UI Module']},[{title: 1}]).toJSON() %>
  11. <% uiBehavior = @getCollection("documents").findAll({type: $in: ['UI Behavior']},[{title: 1}]).toJSON() %>
  12. <% uiSpecification = @getCollection("documents").findAll({type: $in: ['UI Specification']},[{title: 1}]).toJSON() %>
  13. <% currentCollection = @getCollection("documents").findAll({type: $in: [@document.type]},[{title: 1}]).toJSON() %>
  14. <% pageCount = @pageCount(currentCollection) %>
  15. <% pageNumber = @getPage(currentCollection, @document.id) %>
  16. <% pageCollection = @getPageCollection(currentCollection, @document.id) %>
  17. <!-- Standard Meta -->
  18. <meta charset="utf-8" />
  19. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  20. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  21. <link rel="image_src" type="image/jpeg" href="images/share.png" />
  22. <!-- Site Properities -->
  23. <%- @getBlock('meta').toHTML() %>
  24. <title><%= @getPreparedTitle() %></title>
  25. <meta name="description" content="<%= @getPreparedDescription() %>" />
  26. <meta name="keywords" content="<%= @getPreparedKeywords() %>" />
  27. <% if 'development' in @getEnvironments(): %>
  28. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/reset.css">
  29. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/site.css">
  30. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/icon.css">
  31. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/button.css">
  32. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/divider.css">
  33. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/flag.css">
  34. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/header.css">
  35. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/image.css">
  36. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/input.css">
  37. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/label.css">
  38. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/list.css">
  39. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/loader.css">
  40. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/rail.css">
  41. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/reveal.css">
  42. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/progress.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/popup.css">
  60. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/rating.css">
  61. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sidebar.css">
  62. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/shape.css">
  63. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sticky.css">
  64. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/tab.css">
  65. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/checkbox.css">
  66. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dimmer.css">
  67. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/transition.css">
  68. <% else: %>
  69. <link rel="stylesheet" type="text/css" class="ui" href="/build/packaged/definitions/css/semantic.min.css">
  70. <% end %>
  71. <!-- <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/site.less" /> -->
  72. <link rel="stylesheet" type="text/css" href="/stylesheets/doc-icon.css">
  73. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  74. <% if 'development' in @getEnvironments(): %>
  75. <script>
  76. (function () {
  77. var
  78. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  79. jsonSupport = (typeof JSON !== 'undefined'),
  80. jQuery = (eventSupport && jsonSupport)
  81. ? '/javascript/library/jquery.js'
  82. : '/javascript/library/jquery.legacy.js'
  83. ;
  84. document.write('<script src="' + jQuery + '"><\/script>');
  85. }());
  86. </script>
  87. <% else: %>
  88. <script>
  89. (function () {
  90. var
  91. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  92. jsonSupport = (typeof JSON !== 'undefined'),
  93. jQuery = (eventSupport && jsonSupport)
  94. ? '/javascript/library/jquery.min.js'
  95. : '/javascript/library/jquery.legacy.min.js'
  96. ;
  97. document.write('<script src="' + jQuery + '"><\/script>');
  98. }());
  99. </script>
  100. <% end %>
  101. <script src="/javascript/library/history.js"></script>
  102. <script src="/javascript/library/easing.js"></script>
  103. <script src="/javascript/library/ace/ace.js"></script>
  104. <script src="/javascript/library/tablesort.js"></script>
  105. <script src="/javascript/library/waypoints.js"></script>
  106. <% if 'development' in @getEnvironments(): %>
  107. <script src="/build/uncompressed/definitions/globals/site.js"></script>
  108. <script src="/build/uncompressed/definitions/behaviors/api.js"></script>
  109. <script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
  110. <script src="/build/uncompressed/definitions/behaviors/state.js"></script>
  111. <script src="/build/uncompressed/definitions/modules/accordion.js"></script>
  112. <script src="/build/uncompressed/definitions/modules/checkbox.js"></script>
  113. <script src="/build/uncompressed/definitions/modules/dimmer.js"></script>
  114. <script src="/build/uncompressed/definitions/modules/dropdown.js"></script>
  115. <script src="/build/uncompressed/definitions/modules/modal.js"></script>
  116. <script src="/build/uncompressed/definitions/modules/popup.js"></script>
  117. <script src="/build/uncompressed/definitions/modules/rating.js"></script>
  118. <script src="/build/uncompressed/definitions/modules/shape.js"></script>
  119. <script src="/build/uncompressed/definitions/modules/sidebar.js"></script>
  120. <script src="/build/uncompressed/definitions/modules/sticky.js"></script>
  121. <script src="/build/uncompressed/definitions/modules/tab.js"></script>
  122. <script src="/build/uncompressed/definitions/modules/transition.js"></script>
  123. <% else: %>
  124. <script src="/build/packaged/definitions/javascript/semantic.min.js"></script>
  125. <% end %>
  126. <script src="/javascript/semantic.js"></script>
  127. <script>
  128. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  129. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  130. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  131. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  132. ga('create', 'UA-44039803-1', 'semantic-ui.com');
  133. ga('send', 'pageview');
  134. </script>
  135. </head>
  136. <body id="example" class="pushable <%= @document.css %>" ontouchstart="">
  137. <div class="ui vertical inverted labeled icon sidebar menu" id="menu">
  138. <a class="hide item">
  139. <i class="close icon"></i> Close Menu
  140. </a>
  141. <a class="item" href="/build/semantic.zip">
  142. <i class="download icon"></i> <b>Download</b>
  143. </a>
  144. <div class="item">
  145. <a href="/element.html" class="ui small <%= if @document.elementType is 'element' then 'active ' %>inverted header">Elements</a>
  146. <div class="menu">
  147. <% for element in uiElements: %>
  148. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  149. <% end %>
  150. </div>
  151. </div>
  152. <div class="item">
  153. <a href="/collection.html" class="ui small <%= if @document.elementType is 'collection' then 'active ' %> inverted header">Collections</a>
  154. <div class="menu">
  155. <% for element in uiCollections: %>
  156. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  157. <% end %>
  158. </div>
  159. </div>
  160. <div class="item">
  161. <div class="ui small <%= if @document.elementType is 'view' then 'active ' %> inverted header">Views</div>
  162. <div class="menu">
  163. <% for element in uiViews: %>
  164. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  165. <% end %>
  166. </div>
  167. </div>
  168. <div class="item">
  169. <a href="/module.html" class="ui small <%= if @document.elementType is 'module' then 'active ' %> inverted header">Modules</a>
  170. <div class="menu">
  171. <% for element in uiModules: %>
  172. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  173. <% end %>
  174. </div>
  175. </div>
  176. <div class="item">
  177. <a href="/module.html" class="ui small <%= if @document.elementType is 'behavior' then 'active ' %> inverted header">Behavior</a>
  178. <div class="menu">
  179. <% for element in uiBehavior: %>
  180. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  181. <% end %>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="ui fixed inverted main menu">
  186. <div class="container">
  187. <a class="launch item"><i class="content icon"></i> Content</a>
  188. <div class="title item">
  189. <b><%= @document.type %>:</b> <%= @document.title %>
  190. </div>
  191. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  192. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left chevron icon"></i></a>
  193. <% else: %>
  194. <div class="disabled icon item"><i class="left chevron icon"></i></div>
  195. <% end %>
  196. <div class="section ui dropdown link item">
  197. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  198. <div class="menu">
  199. <% for element, index in currentCollection: %>
  200. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  201. <%= (index+1) %>. <%= element.title %>
  202. </a>
  203. <% end %>
  204. </div>
  205. </div>
  206. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  207. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right chevron icon"></i></a>
  208. <% else: %>
  209. <div class="disabled icon item"><i class="right chevron icon"></i></div>
  210. <% end %>
  211. <div class="right menu">
  212. <div class="vertically fitted borderless item">
  213. <iframe src="http://ghbtns.com/github-btn.html?user=semantic-org&repo=semantic-ui&type=watch&count=true"
  214. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  215. </div>
  216. <% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
  217. <a class="popup designer icon item" data-content="Designer Mode">
  218. <i class="docs designer icon"></i>
  219. </a>
  220. <a class="popup developer icon item" data-content="Developer Mode">
  221. <i class="docs developer icon"></i>
  222. </a>
  223. <% end %>
  224. <a class="popup icon github item" data-content="View project on GitHub" href="https://github.com/quirkyinc/semantic">
  225. <i class="alternate github icon"></i>
  226. </a>
  227. <!-- <a class="popup localization icon item" data-content="International">
  228. <i class="docs globe icon"></i>
  229. </a> -->
  230. </div>
  231. </div>
  232. </div>
  233. <div class="ui black huge launch right attached fixed button">
  234. <i class="content icon"></i>
  235. <span class="text">Menu</span>
  236. </div>
  237. <div class="pusher">
  238. <div class="page">
  239. <div class="full height">
  240. <%- @content %>
  241. </div>
  242. <div class="ui vertical inverted black footer segment">
  243. <div class="container">
  244. <div class="ui stackable inverted divided relaxed grid">
  245. <div class="eight wide column">
  246. <h3 class="ui inverted header">Help Keep Semantic UI Alive</h3>
  247. <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>
  248. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  249. <input type="hidden" name="cmd" value="_s-xclick">
  250. <input type="hidden" name="hosted_button_id" value="7ZAF2Q8DBZAQL">
  251. <button type="submit" class="ui teal button">Donate Today</button>
  252. </form>
  253. </div>
  254. <div class="four wide column">
  255. <h5 class="ui teal inverted header">Contribute</h5>
  256. <div class="ui inverted link list">
  257. <a class="item" href="mailto:jack@semantic-ui.com?subject=Help Translating">Translate</a>
  258. <a class="item" href="https://github.com/Semantic-Org/Semantic-UI" target="_blank">Issue Tracker</a>
  259. <a class="item" href="https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aopen+is%3Aissue+label%3ABug" target="_blank">Known Bugs</a>
  260. <a class="disabled item">Create Themes</a>
  261. </div>
  262. </div>
  263. <div class="four wide column">
  264. <h5 class="ui teal inverted header">Semantic Network</h5>
  265. <div class="ui inverted link list">
  266. <a class="item" href="https://www.transifex.com/projects/p/semantic-ui-beta/" target="_blank">Translation Hub</a>
  267. <a class="disabled item">Semantic UI</a>
  268. <a class="disabled item">Learn Semantic</a>
  269. <a class="disabled item">Semantic Themes</a>
  270. </div>
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <script src="/javascript/library/less.js"></script>
  278. </body>
  279. </html>