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.

257 lines
13 KiB

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