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.

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