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.

255 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/waypoints.js"></script>
  71. <script src="/build/uncompressed/modules/behavior/api.js"></script>
  72. <script src="/build/uncompressed/modules/behavior/state.js"></script>
  73. <script src="/build/uncompressed/modules/accordion.js"></script>
  74. <script src="/build/uncompressed/modules/checkbox.js"></script>
  75. <script src="/build/uncompressed/modules/dimmer.js"></script>
  76. <script src="/build/uncompressed/modules/dropdown.js"></script>
  77. <script src="/build/uncompressed/modules/modal.js"></script>
  78. <script src="/build/uncompressed/modules/popup.js"></script>
  79. <script src="/build/uncompressed/modules/rating.js"></script>
  80. <script src="/build/uncompressed/modules/sidebar.js"></script>
  81. <script src="/build/uncompressed/modules/tab.js"></script>
  82. <script src="/build/uncompressed/modules/transition.js"></script>
  83. <script src="/javascript/semantic.js"></script>
  84. <script>
  85. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  86. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  87. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  88. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  89. ga('create', 'UA-44039803-1', 'semantic-ui.com');
  90. ga('send', 'pageview');
  91. </script>
  92. </head>
  93. <body id="example" class="<%= @document.css %>">
  94. <div class="ui large vertical inverted labeled icon sidebar menu" id="menu">
  95. <a class="hide item">
  96. <i class="close icon"></i> Close Menu
  97. </a>
  98. <a class="item" href="/build/semantic.zip">
  99. <i class="inverted circular red awesome download cloud icon"></i> <b>Download</b>
  100. </a>
  101. <div class="item">
  102. <b>Project</b>
  103. <div class="menu">
  104. <% for element in uiProject: %>
  105. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  106. <% end %>
  107. </div>
  108. </div>
  109. <div class="item">
  110. <a href="/introduction.html">
  111. <b>Introduction</b>
  112. </a>
  113. <div class="menu">
  114. <% for element in uiIntroduction: %>
  115. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  116. <% end %>
  117. </div>
  118. </div>
  119. <div class="item">
  120. <a href="/element.html"><b>Elements</b></a>
  121. <div class="menu">
  122. <% for element in uiElements: %>
  123. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  124. <% end %>
  125. </div>
  126. </div>
  127. <div class="item">
  128. <a href="/collection.html"><b>Collections</b></a>
  129. <div class="menu">
  130. <% for element in uiCollections: %>
  131. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  132. <% end %>
  133. </div>
  134. </div>
  135. <div class="item">
  136. <b>Views</b>
  137. <div class="menu">
  138. <% for element in uiViews: %>
  139. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  140. <% end %>
  141. </div>
  142. </div>
  143. <div class="item">
  144. <b>Modules</b>
  145. <div class="menu">
  146. <% for element in uiModules: %>
  147. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  148. <% end %>
  149. </div>
  150. </div>
  151. <div class="item">
  152. <b>Behavior</b>
  153. <div class="menu">
  154. <% for element in uiBehavior: %>
  155. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  156. <% end %>
  157. </div>
  158. </div>
  159. <div class="item">
  160. <b>Style Guide</b>
  161. <div class="menu">
  162. <% for element in uiGuide: %>
  163. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  164. <% end %>
  165. </div>
  166. </div>
  167. <!-- <div class="item">
  168. <b>Specification</b>
  169. <div class="menu">
  170. <% for element in uiSpecification: %>
  171. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  172. <% end %>
  173. </div>
  174. </div> -->
  175. </div>
  176. <div class="ui fixed transparent inverted main menu">
  177. <div class="container">
  178. <a class="launch item"><i class="icon list layout"></i> Content</a>
  179. <div class="title item">
  180. <b><%= @document.type %>:</b> <%= @document.title %>
  181. </div>
  182. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  183. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left arrow icon"></i></a>
  184. <% else: %>
  185. <div class="disabled icon item"><i class="left arrow icon"></i></div>
  186. <% end %>
  187. <div class="section ui dropdown link item">
  188. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  189. <div class="menu">
  190. <% for element, index in currentCollection: %>
  191. <div class="<%= if element.id is @document.id then 'active ' %>item">
  192. <a href="<%= element.url %>"><%= (index+1) %>. <%= element.title %></a>
  193. </div>
  194. <% end %>
  195. </div>
  196. </div>
  197. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  198. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right arrow icon"></i></a>
  199. <% else: %>
  200. <div class="disabled icon item"><i class="right arrow icon"></i></div>
  201. <% end %>
  202. <div class="right menu">
  203. <div class="vertically fitted borderless item">
  204. <iframe src="http://ghbtns.com/github-btn.html?user=jlukic&repo=semantic-ui&type=watch&count=true"
  205. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  206. </div>
  207. <% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
  208. <!-- <a class="popup overview icon item" title="Toggle Definition">
  209. <i class="book icon"></i>
  210. </a> -->
  211. <a class="popup designer icon item" title="Designer Mode">
  212. <i class="basic paint icon"></i>
  213. </a>
  214. <a class="popup developer icon item" title="Developer Mode">
  215. <i class="terminal icon"></i>
  216. </a>
  217. <% end %>
  218. <a class="popup icon github item" title="View project on Github" href="https://github.com/quirkyinc/semantic">
  219. <i class="icon github"></i>
  220. </a>
  221. <!--
  222. <div class="ui simple dropdown item">
  223. <i class="icon tint"></i> Theme
  224. <div class="theme menu">
  225. <div class="active item" data-theme="flat">Flat</div>
  226. <div class="item" data-theme="shaded">Shaded</div>
  227. <div class="item" data-theme="classic">Classic</div>
  228. </div>
  229. </div>
  230. !-->
  231. </div>
  232. </div>
  233. </div>
  234. <div class="ui black huge launch right attached button">
  235. <i class="icon list layout"></i>
  236. <span class="text">Menu</span>
  237. </div>
  238. <%- @content %>
  239. </body>
  240. </html>