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.

253 lines
13 KiB

  1. <!DOCTYPE html>
  2. <head>
  3. <% uiIntroduction = @getCollection("documents").findAll({type: $in: ['UI Introduction']},[{title: 1}]).toJSON() %>
  4. <% uiProject = @getCollection("documents").findAll({type: $in: ['Semantic Project']},[{title: 1}]).toJSON() %>
  5. <% uiGuide = @getCollection("documents").findAll({type: $in: ['UI Guide']},[{title: 1}]).toJSON() %>
  6. <% uiElements = @getCollection("documents").findAll({type: $in: ['UI Element']},[{title: 1}]).toJSON() %>
  7. <% uiCollections = @getCollection("documents").findAll({type: $in: ['UI Collection']},[{title: 1}]).toJSON() %>
  8. <% uiViews = @getCollection("documents").findAll({type: $in: ['UI View']},[{title: 1}]).toJSON() %>
  9. <% uiModules = @getCollection("documents").findAll({type: $in: ['UI Module']},[{title: 1}]).toJSON() %>
  10. <% uiBehavior = @getCollection("documents").findAll({type: $in: ['UI Behavior']},[{title: 1}]).toJSON() %>
  11. <% uiSpecification = @getCollection("documents").findAll({type: $in: ['UI Specification']},[{title: 1}]).toJSON() %>
  12. <% currentCollection = @getCollection("documents").findAll({type: $in: [@document.type]},[{title: 1}]).toJSON() %>
  13. <% pageCount = @pageCount(currentCollection) %>
  14. <% pageNumber = @getPage(currentCollection, @document.id) %>
  15. <% pageCollection = @getPageCollection(currentCollection, @document.id) %>
  16. <!-- Standard Meta -->
  17. <meta charset="utf-8" />
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  19. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  20. <!-- Site Properities -->
  21. <%- @getBlock('meta').toHTML() %>
  22. <title><%= @getPreparedTitle() %></title>
  23. <meta name="description" content="<%= @getPreparedDescription() %>" />
  24. <meta name="keywords" content="<%= @getPreparedKeywords() %>" />
  25. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/basic.icon.css">
  26. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/icon.css">
  27. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/button.css">
  28. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/divider.css">
  29. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/header.css">
  30. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/image.css">
  31. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/input.css">
  32. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/label.css">
  33. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/loader.css">
  34. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/progress.css">
  35. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/segment.css">
  36. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/elements/step.css">
  37. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/breadcrumb.css">
  38. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/form.css">
  39. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/grid.css">
  40. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/menu.css">
  41. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/message.css">
  42. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/collections/table.css">
  43. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/views/comment.css">
  44. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/views/list.css">
  45. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/views/feed.css">
  46. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/views/item.css">
  47. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/views/statistic.css">
  48. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/modal.css">
  49. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/accordion.css">
  50. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/dropdown.css">
  51. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/popup.css">
  52. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/reveal.css">
  53. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/rating.css">
  54. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/sidebar.css">
  55. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/shape.css">
  56. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/tab.css">
  57. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/checkbox.css">
  58. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/dimmer.css">
  59. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/modules/transition.css">
  60. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  61. <!--
  62. <link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet">
  63. -->
  64. <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700|Open+Sans:300italic,400,300,700' rel='stylesheet' type='text/css'>
  65. <script src="/javascript/library/jquery.js"></script>
  66. <script src="/javascript/library/history.js"></script>
  67. <script src="/javascript/library/easing.js"></script>
  68. <script src="/javascript/library/ace/ace.js"></script>
  69. <script src="/javascript/library/waypoints.js"></script>
  70. <script src="/build/uncompressed/modules/behavior/api.js"></script>
  71. <script src="/build/uncompressed/modules/behavior/state.js"></script>
  72. <script src="/build/uncompressed/modules/accordion.js"></script>
  73. <script src="/build/uncompressed/modules/checkbox.js"></script>
  74. <script src="/build/uncompressed/modules/dimmer.js"></script>
  75. <script src="/build/uncompressed/modules/dropdown.js"></script>
  76. <script src="/build/uncompressed/modules/modal.js"></script>
  77. <script src="/build/uncompressed/modules/popup.js"></script>
  78. <script src="/build/uncompressed/modules/rating.js"></script>
  79. <script src="/build/uncompressed/modules/sidebar.js"></script>
  80. <script src="/build/uncompressed/modules/tab.js"></script>
  81. <script src="/build/uncompressed/modules/transition.js"></script>
  82. <script src="/javascript/semantic.js"></script>
  83. <script>
  84. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  85. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  86. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  87. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  88. ga('create', 'UA-44039803-1', 'semantic-ui.com');
  89. ga('send', 'pageview');
  90. </script>
  91. </head>
  92. <body id="example" class="<%= @document.css %>">
  93. <div class="ui large vertical inverted labeled icon sidebar menu" id="menu">
  94. <a class="hide item">
  95. <i class="close icon"></i> Close Menu
  96. </a>
  97. <a class="item" href="/build/semantic.zip">
  98. <i class="inverted circular red awesome download cloud icon"></i> <b>Download</b>
  99. </a>
  100. <div class="item">
  101. <b>Project</b>
  102. <div class="menu">
  103. <% for element in uiProject: %>
  104. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  105. <% end %>
  106. </div>
  107. </div>
  108. <div class="item">
  109. <a href="/introduction.html">
  110. <b>Introduction</b>
  111. </a>
  112. <div class="menu">
  113. <% for element in uiIntroduction: %>
  114. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  115. <% end %>
  116. </div>
  117. </div>
  118. <div class="item">
  119. <a href="/element.html"><b>Elements</b></a>
  120. <div class="menu">
  121. <% for element in uiElements: %>
  122. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  123. <% end %>
  124. </div>
  125. </div>
  126. <div class="item">
  127. <a href="/collection.html"><b>Collections</b></a>
  128. <div class="menu">
  129. <% for element in uiCollections: %>
  130. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  131. <% end %>
  132. </div>
  133. </div>
  134. <div class="item">
  135. <b>Views</b>
  136. <div class="menu">
  137. <% for element in uiViews: %>
  138. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  139. <% end %>
  140. </div>
  141. </div>
  142. <div class="item">
  143. <b>Modules</b>
  144. <div class="menu">
  145. <% for element in uiModules: %>
  146. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  147. <% end %>
  148. </div>
  149. </div>
  150. <div class="item">
  151. <b>Behavior</b>
  152. <div class="menu">
  153. <% for element in uiBehavior: %>
  154. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  155. <% end %>
  156. </div>
  157. </div>
  158. <div class="item">
  159. <b>Style Guide</b>
  160. <div class="menu">
  161. <% for element in uiGuide: %>
  162. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  163. <% end %>
  164. </div>
  165. </div>
  166. <!-- <div class="item">
  167. <b>Specification</b>
  168. <div class="menu">
  169. <% for element in uiSpecification: %>
  170. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  171. <% end %>
  172. </div>
  173. </div> -->
  174. </div>
  175. <div class="ui fixed transparent inverted main menu">
  176. <div class="container">
  177. <a class="launch item"><i class="icon list layout"></i> Content</a>
  178. <div class="title item">
  179. <b><%= @document.type %>:</b> <%= @document.title %>
  180. </div>
  181. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  182. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left arrow icon"></i></a>
  183. <% else: %>
  184. <div class="disabled icon item"><i class="left arrow icon"></i></div>
  185. <% end %>
  186. <div class="section ui dropdown link item">
  187. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  188. <div class="menu">
  189. <% for element, index in currentCollection: %>
  190. <div class="<%= if element.id is @document.id then 'active ' %>item">
  191. <a href="<%= element.url %>"><%= (index+1) %>. <%= element.title %></a>
  192. </div>
  193. <% end %>
  194. </div>
  195. </div>
  196. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  197. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right arrow icon"></i></a>
  198. <% else: %>
  199. <div class="disabled icon item"><i class="right arrow icon"></i></div>
  200. <% end %>
  201. <div class="right menu">
  202. <div class="vertically fitted borderless item">
  203. <iframe src="http://ghbtns.com/github-btn.html?user=jlukic&repo=semantic-ui&type=watch&count=true"
  204. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  205. </div>
  206. <% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
  207. <!-- <a class="popup overview icon item" title="Toggle Definition">
  208. <i class="book icon"></i>
  209. </a> -->
  210. <a class="popup designer icon item" title="Designer Mode">
  211. <i class="basic paint icon"></i>
  212. </a>
  213. <a class="popup developer icon item" title="Developer Mode">
  214. <i class="terminal icon"></i>
  215. </a>
  216. <% end %>
  217. <a class="popup icon github item" title="View project on Github" href="https://github.com/quirkyinc/semantic">
  218. <i class="icon github"></i>
  219. </a>
  220. <!--
  221. <div class="ui simple dropdown item">
  222. <i class="icon tint"></i> Theme
  223. <div class="theme menu">
  224. <div class="active item" data-theme="flat">Flat</div>
  225. <div class="item" data-theme="shaded">Shaded</div>
  226. <div class="item" data-theme="classic">Classic</div>
  227. </div>
  228. </div>
  229. !-->
  230. </div>
  231. </div>
  232. </div>
  233. <div class="ui black huge launch right attached button">
  234. <i class="icon list layout"></i>
  235. <span class="text">Menu</span>
  236. </div>
  237. <%- @content %>
  238. </body>
  239. </html>