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.

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