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.

261 lines
15 KiB

11 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. <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic' rel='stylesheet' type='text/css'>
  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/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/reveal.css">
  41. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/progress.css">
  42. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/segment.css">
  43. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/step.css">
  44. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/breadcrumb.css">
  45. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/form.css">
  46. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/grid.css">
  47. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/menu.css">
  48. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/message.css">
  49. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/table.css">
  50. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/card.css">
  51. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/comment.css">
  52. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/feed.css">
  53. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/item.css">
  54. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/statistic.css">
  55. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/modal.css">
  56. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/accordion.css">
  57. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dropdown.css">
  58. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/popup.css">
  59. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/rating.css">
  60. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sidebar.css">
  61. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/shape.css">
  62. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sticky.css">
  63. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/tab.css">
  64. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/checkbox.css">
  65. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dimmer.css">
  66. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/transition.css">
  67. <% else: %>
  68. <link rel="stylesheet" type="text/css" class="ui" href="/build/packaged/definitions/css/semantic.min.css">
  69. <% end %>
  70. <!-- <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/site.less" /> -->
  71. <link rel="stylesheet" type="text/css" href="/stylesheets/doc-icon.css">
  72. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  73. <% if 'development' in @getEnvironments(): %>
  74. <script>
  75. (function () {
  76. var
  77. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  78. jsonSupport = (typeof JSON !== 'undefined'),
  79. jQuery = (eventSupport && jsonSupport)
  80. ? '/javascript/library/jquery.js'
  81. : '/javascript/library/jquery.legacy.js'
  82. ;
  83. document.write('<script src="' + jQuery + '"><\/script>');
  84. }());
  85. </script>
  86. <% else: %>
  87. <script>
  88. (function () {
  89. var
  90. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  91. jsonSupport = (typeof JSON !== 'undefined'),
  92. jQuery = (eventSupport && jsonSupport)
  93. ? '/javascript/library/jquery.min.js'
  94. : '/javascript/library/jquery.legacy.min.js'
  95. ;
  96. document.write('<script src="' + jQuery + '"><\/script>');
  97. }());
  98. </script>
  99. <% end %>
  100. <script src="/javascript/library/history.js"></script>
  101. <script src="/javascript/library/easing.js"></script>
  102. <script src="/javascript/library/ace/ace.js"></script>
  103. <script src="/javascript/library/tablesort.js"></script>
  104. <script src="/javascript/library/waypoints.js"></script>
  105. <% if 'development' in @getEnvironments(): %>
  106. <script src="/build/uncompressed/definitions/globals/site.js"></script>
  107. <script src="/build/uncompressed/definitions/behaviors/api.js"></script>
  108. <script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
  109. <script src="/build/uncompressed/definitions/behaviors/state.js"></script>
  110. <script src="/build/uncompressed/definitions/modules/accordion.js"></script>
  111. <script src="/build/uncompressed/definitions/modules/checkbox.js"></script>
  112. <script src="/build/uncompressed/definitions/modules/dimmer.js"></script>
  113. <script src="/build/uncompressed/definitions/modules/dropdown.js"></script>
  114. <script src="/build/uncompressed/definitions/modules/modal.js"></script>
  115. <script src="/build/uncompressed/definitions/modules/popup.js"></script>
  116. <script src="/build/uncompressed/definitions/modules/rating.js"></script>
  117. <script src="/build/uncompressed/definitions/modules/shape.js"></script>
  118. <script src="/build/uncompressed/definitions/modules/sidebar.js"></script>
  119. <script src="/build/uncompressed/definitions/modules/sticky.js"></script>
  120. <script src="/build/uncompressed/definitions/modules/tab.js"></script>
  121. <script src="/build/uncompressed/definitions/modules/transition.js"></script>
  122. <% else: %>
  123. <script src="/build/packaged/definitions/javascript/semantic.min.js"></script>
  124. <% end %>
  125. <script src="/javascript/semantic.js"></script>
  126. <script>
  127. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  128. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  129. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  130. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  131. ga('create', 'UA-44039803-1', 'semantic-ui.com');
  132. ga('send', 'pageview');
  133. </script>
  134. </head>
  135. <body id="example" class="pushable <%= @document.css %>" ontouchstart="">
  136. <div class="ui vertical inverted labeled icon sidebar menu" id="menu">
  137. <a class="hide item">
  138. <i class="close icon"></i> Close Menu
  139. </a>
  140. <a class="item" href="/build/semantic.zip">
  141. <i class="download icon"></i> <b>Download</b>
  142. </a>
  143. <div class="item">
  144. <a href="/element.html" class="ui small <%= if @document.elementType is 'element' then 'active ' %>inverted header">Elements</a>
  145. <div class="menu">
  146. <% for element in uiElements: %>
  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. <a href="/collection.html" class="ui small <%= if @document.elementType is 'collection' then 'active ' %> inverted header">Collections</a>
  153. <div class="menu">
  154. <% for element in uiCollections: %>
  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. <div class="ui small <%= if @document.elementType is 'view' then 'active ' %> inverted header">Views</div>
  161. <div class="menu">
  162. <% for element in uiViews: %>
  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. <a href="/module.html" class="ui small <%= if @document.elementType is 'module' then 'active ' %> inverted header">Modules</a>
  169. <div class="menu">
  170. <% for element in uiModules: %>
  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 class="item">
  176. <a href="/module.html" class="ui small <%= if @document.elementType is 'behavior' then 'active ' %> inverted header">Behavior</a>
  177. <div class="menu">
  178. <% for element in uiBehavior: %>
  179. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  180. <% end %>
  181. </div>
  182. </div>
  183. </div>
  184. <div class="pusher">
  185. <div class="page">
  186. <div class="ui fixed inverted main menu">
  187. <div class="container">
  188. <a class="launch item"><i class="content icon"></i> Content</a>
  189. <div class="title item">
  190. <b><%= @document.type %>:</b> <%= @document.title %>
  191. </div>
  192. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  193. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left chevron icon"></i></a>
  194. <% else: %>
  195. <div class="disabled icon item"><i class="left chevron icon"></i></div>
  196. <% end %>
  197. <div class="section ui dropdown link item">
  198. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  199. <div class="menu">
  200. <% for element, index in currentCollection: %>
  201. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  202. <%= (index+1) %>. <%= element.title %>
  203. </a>
  204. <% end %>
  205. </div>
  206. </div>
  207. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  208. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right chevron icon"></i></a>
  209. <% else: %>
  210. <div class="disabled icon item"><i class="right chevron icon"></i></div>
  211. <% end %>
  212. <div class="right menu">
  213. <div class="vertically fitted borderless item">
  214. <iframe src="http://ghbtns.com/github-btn.html?user=semantic-org&repo=semantic-ui&type=watch&count=true"
  215. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  216. </div>
  217. <% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
  218. <a class="popup designer icon item" data-content="Designer Mode">
  219. <i class="docs designer icon"></i>
  220. </a>
  221. <a class="popup developer icon item" data-content="Developer Mode">
  222. <i class="docs developer icon"></i>
  223. </a>
  224. <% end %>
  225. <a class="popup icon github item" data-content="View project on GitHub" href="https://github.com/quirkyinc/semantic">
  226. <i class="alternate github icon"></i>
  227. </a>
  228. <!-- <a class="popup localization icon item" data-content="International">
  229. <i class="docs globe icon"></i>
  230. </a> -->
  231. </div>
  232. </div>
  233. </div>
  234. <div class="ui black huge launch right attached fixed button">
  235. <i class="content icon"></i>
  236. <span class="text">Menu</span>
  237. </div>
  238. <%- @content %>
  239. </div>
  240. </div>
  241. <script src="/javascript/library/less.js"></script>
  242. </body>
  243. </html>