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.

343 lines
19 KiB

11 years ago
10 years ago
10 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. <% if 'development' in @getEnvironments(): %>
  28. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/reset.css">
  29. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/globals/site.css">
  30. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/icon.css">
  31. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/button.css">
  32. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/divider.css">
  33. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/flag.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/rail.css">
  41. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/reveal.css">
  42. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/progress.css">
  43. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/segment.css">
  44. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/elements/step.css">
  45. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/breadcrumb.css">
  46. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/form.css">
  47. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/grid.css">
  48. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/menu.css">
  49. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/message.css">
  50. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/collections/table.css">
  51. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/card.css">
  52. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/comment.css">
  53. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/feed.css">
  54. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/item.css">
  55. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/views/statistic.css">
  56. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/modal.css">
  57. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/accordion.css">
  58. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dropdown.css">
  59. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/popup.css">
  60. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/rating.css">
  61. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sidebar.css">
  62. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/shape.css">
  63. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/sticky.css">
  64. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/tab.css">
  65. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/checkbox.css">
  66. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/dimmer.css">
  67. <link rel="stylesheet" type="text/css" class="ui" href="/build/uncompressed/definitions/modules/transition.css">
  68. <% else: %>
  69. <link rel="stylesheet" type="text/css" class="ui" href="/build/packaged/definitions/css/semantic.min.css">
  70. <% end %>
  71. <!-- <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/site.less" /> -->
  72. <link rel="stylesheet" type="text/css" href="/stylesheets/doc-icon.css">
  73. <link rel="stylesheet" type="text/css" href="/stylesheets/semantic.css">
  74. <% if 'development' in @getEnvironments(): %>
  75. <script>
  76. (function () {
  77. var
  78. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  79. jsonSupport = (typeof JSON !== 'undefined'),
  80. jQuery = (eventSupport && jsonSupport)
  81. ? '/javascript/library/jquery.js'
  82. : '/javascript/library/jquery.legacy.js'
  83. ;
  84. document.write('<script src="' + jQuery + '"><\/script>');
  85. }());
  86. </script>
  87. <% else: %>
  88. <script>
  89. (function () {
  90. var
  91. eventSupport = ('querySelector' in document && 'addEventListener' in window)
  92. jsonSupport = (typeof JSON !== 'undefined'),
  93. jQuery = (eventSupport && jsonSupport)
  94. ? '/javascript/library/jquery.min.js'
  95. : '/javascript/library/jquery.legacy.min.js'
  96. ;
  97. document.write('<script src="' + jQuery + '"><\/script>');
  98. }());
  99. </script>
  100. <% end %>
  101. <script src="/javascript/library/history.js"></script>
  102. <script src="/javascript/library/easing.js"></script>
  103. <script src="/javascript/library/ace/ace.js"></script>
  104. <script src="/javascript/library/tablesort.js"></script>
  105. <script src="/javascript/library/waypoints.js"></script>
  106. <% if 'development' in @getEnvironments(): %>
  107. <script src="/build/uncompressed/definitions/globals/site.js"></script>
  108. <script src="/build/uncompressed/definitions/behaviors/api.js"></script>
  109. <script src="/build/uncompressed/definitions/behaviors/visibility.js"></script>
  110. <script src="/build/uncompressed/definitions/behaviors/state.js"></script>
  111. <script src="/build/uncompressed/definitions/modules/accordion.js"></script>
  112. <script src="/build/uncompressed/definitions/modules/checkbox.js"></script>
  113. <script src="/build/uncompressed/definitions/modules/dimmer.js"></script>
  114. <script src="/build/uncompressed/definitions/modules/dropdown.js"></script>
  115. <script src="/build/uncompressed/definitions/modules/modal.js"></script>
  116. <script src="/build/uncompressed/definitions/modules/popup.js"></script>
  117. <script src="/build/uncompressed/definitions/modules/rating.js"></script>
  118. <script src="/build/uncompressed/definitions/modules/shape.js"></script>
  119. <script src="/build/uncompressed/definitions/modules/sidebar.js"></script>
  120. <script src="/build/uncompressed/definitions/modules/sticky.js"></script>
  121. <script src="/build/uncompressed/definitions/modules/tab.js"></script>
  122. <script src="/build/uncompressed/definitions/modules/transition.js"></script>
  123. <% else: %>
  124. <script src="/build/packaged/definitions/javascript/semantic.min.js"></script>
  125. <% end %>
  126. <script src="/javascript/semantic.js"></script>
  127. <script>
  128. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  129. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  130. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  131. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  132. ga('create', 'UA-44039803-1', 'semantic-ui.com');
  133. ga('send', 'pageview');
  134. </script>
  135. <script type="text/javascript">
  136. window.liveSettings = {
  137. api_key : '9ede3015b9f84c1aabc81ab839c55d74',
  138. parse_attr : [
  139. 'data-title',
  140. 'data-content'
  141. ],
  142. detectlang : true,
  143. autocollect : true,
  144. ignore_tags : ['i'],
  145. ignore_class : ["code", "ace_editor"]
  146. };
  147. </script>
  148. <script type="text/javascript" src="//cdn.transifex.com/live.js"></script>
  149. </head>
  150. <body id="example" class="pushable <%= @document.css %>" ontouchstart="">
  151. <div class="ui vertical inverted labeled icon sidebar menu" id="menu">
  152. <a class="hide item">
  153. <i class="close icon"></i> Close Menu
  154. </a>
  155. <a class="item" href="/build/semantic.zip">
  156. <i class="download icon"></i> <b>Download</b>
  157. </a>
  158. <div class="item">
  159. <a href="/element.html" class="ui small <%= if @document.elementType is 'element' then 'active ' %>inverted header">Elements</a>
  160. <div class="menu">
  161. <% for element in uiElements: %>
  162. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  163. <% end %>
  164. </div>
  165. </div>
  166. <div class="item">
  167. <a href="/collection.html" class="ui small <%= if @document.elementType is 'collection' then 'active ' %> inverted header">Collections</a>
  168. <div class="menu">
  169. <% for element in uiCollections: %>
  170. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  171. <% end %>
  172. </div>
  173. </div>
  174. <div class="item">
  175. <div class="ui small <%= if @document.elementType is 'view' then 'active ' %> inverted header">Views</div>
  176. <div class="menu">
  177. <% for element in uiViews: %>
  178. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  179. <% end %>
  180. </div>
  181. </div>
  182. <div class="item">
  183. <a href="/module.html" class="ui small <%= if @document.elementType is 'module' then 'active ' %> inverted header">Modules</a>
  184. <div class="menu">
  185. <% for element in uiModules: %>
  186. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  187. <% end %>
  188. </div>
  189. </div>
  190. <div class="item">
  191. <a href="/module.html" class="ui small <%= if @document.elementType is 'behavior' then 'active ' %> inverted header">Behavior</a>
  192. <div class="menu">
  193. <% for element in uiBehavior: %>
  194. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>"><%= element.title %></a>
  195. <% end %>
  196. </div>
  197. </div>
  198. </div>
  199. <div class="ui fixed inverted main menu">
  200. <div class="container">
  201. <a class="launch item"><i class="content icon"></i></a>
  202. <div class="title item">
  203. <b><%= @document.type %>:</b> <%= @document.title %>
  204. </div>
  205. <% if pageNumber > 1 and currentCollection[pageNumber - 2]?: %>
  206. <a class="icon item" href="<%= currentCollection[pageNumber - 2].url %>"><i class="left chevron icon"></i></a>
  207. <% else: %>
  208. <div class="disabled icon item"><i class="left chevron icon"></i></div>
  209. <% end %>
  210. <div class="section ui page dropdown link item">
  211. <span class="count"><%= "#{pageNumber} of #{pageCount}" %></span>
  212. <div class="menu">
  213. <% for element, index in currentCollection: %>
  214. <a class="<%= if element.id is @document.id then 'active ' %>item" href="<%= element.url %>">
  215. <%= element.title %>
  216. </a>
  217. <% end %>
  218. </div>
  219. </div>
  220. <% if pageNumber isnt pageCount and currentCollection[pageNumber]?: %>
  221. <a class="icon item" href="<%= currentCollection[pageNumber].url %>"><i class="right chevron icon"></i></a>
  222. <% else: %>
  223. <div class="disabled icon item"><i class="right chevron icon"></i></div>
  224. <% end %>
  225. <div class="right menu">
  226. <div class="vertically fitted borderless item">
  227. <iframe src="http://ghbtns.com/github-btn.html?user=semantic-org&repo=semantic-ui&type=watch&count=true"
  228. allowtransparency="true" frameborder="0" scrolling="0" width="95" height="20"></iframe>
  229. </div>
  230. <a class="popup icon github item" data-content="View project on GitHub" href="https://github.com/quirkyinc/semantic">
  231. <i class="alternate github icon"></i>
  232. </a>
  233. <div class="ui language dropdown item" id="languages" data-content="Select Language">
  234. <i class="world icon"></i>
  235. <div class="menu">
  236. <div class="item" data-percent="100" data-value="en">English</div>
  237. <div class="item" data-percent="19" data-value="nl">Nederlands</div>
  238. <div class="item" data-percent="19" data-value="hu">Magyar</div>
  239. <div class="item" data-percent="8" data-value="ar">العربية</div>
  240. <div class="item" data-percent="0" data-value="pt_BR">Português</div>
  241. <div class="item" data-percent="0" data-value="tr">Türkçe</div>
  242. <div class="item" data-percent="0" data-value="es">Español</div>
  243. <div class="item" data-percent="0" data-value="ru">Русский</div>
  244. <div class="item" data-percent="0" data-value="de">Deutsch</div>
  245. <div class="item" data-percent="0" data-value="fr">Français</div>
  246. <div class="item" data-percent="0" data-value="ja">日本語</div>
  247. <div class="item" data-percent="0" data-value="en">简体中文</div>
  248. <div class="item" data-percent="0" data-value="kr">한국어</div>
  249. <div class="item" data-percent="0" data-value="it">Italiano</div>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="ui black huge launch right attached fixed button">
  256. <i class="content icon"></i>
  257. <span class="text">Menu</span>
  258. </div>
  259. <div class="pusher">
  260. <div class="page">
  261. <div class="full height">
  262. <%- @content %>
  263. </div>
  264. <div class="ui vertical inverted black footer segment">
  265. <div class="container">
  266. <div class="ui stackable inverted divided relaxed grid">
  267. <div class="eight wide column">
  268. <h3 class="ui inverted header">Help Keep Semantic UI Alive</h3>
  269. <p>Maintaining an open source UI library is no small task. Support for the continued development of Semantic UI comes directly from the community.</p>
  270. <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  271. <input type="hidden" name="cmd" value="_s-xclick">
  272. <input type="hidden" name="hosted_button_id" value="7ZAF2Q8DBZAQL">
  273. <button type="submit" class="ui teal button">Donate Today</button>
  274. </form>
  275. </div>
  276. <div class="four wide column">
  277. <h5 class="ui teal inverted header">Contribute</h5>
  278. <div class="ui inverted link list">
  279. <a class="item" href="mailto:jack@semantic-ui.com?subject=Help Translating">Translate</a>
  280. <a class="item" href="https://github.com/Semantic-Org/Semantic-UI" target="_blank">Issue Tracker</a>
  281. <a class="item" href="https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aopen+is%3Aissue+label%3ABug" target="_blank">Known Bugs</a>
  282. <a class="disabled item">Create Themes</a>
  283. </div>
  284. </div>
  285. <div class="four wide column">
  286. <h5 class="ui teal inverted header">Semantic Network</h5>
  287. <div class="ui inverted link list">
  288. <a class="item" href="https://www.transifex.com/projects/p/semantic-ui-beta/" target="_blank">Translation Hub</a>
  289. <a class="disabled item">Semantic UI</a>
  290. <a class="disabled item">Learn Semantic</a>
  291. <a class="disabled item">Semantic Themes</a>
  292. </div>
  293. </div>
  294. </div>
  295. </div>
  296. </div>
  297. </div>
  298. </div>
  299. <div class="ui basic language modal">
  300. <i class="close icon"></i>
  301. <div class="header">The <span class="name"></span> Translation Needs Your Help</div>
  302. <div class="content">
  303. <div class="middle aligned image">
  304. <i class="world icon"></i>
  305. </div>
  306. <div class="description">
  307. <p>This translation is only <b><span class="complete"></span>%</b> complete!</p>
  308. <div class="ui teal active progress">
  309. <div class="bar"></div>
  310. </div>
  311. <p>We need your help to make Semantic available to people who speak your language.</p>
  312. <p>Our translation tools are easy to use and allow you to translate text without having to leave the site. If you are interested in joining our translation team please <a href="mailto:jack@semantic-ui.com?subject=Localization%20Help">e-mail me</a> for access to our translation hub.
  313. </p>
  314. </div>
  315. </div>
  316. <div class="actions">
  317. <div class="ui inverted cancel button">No Thanks</div>
  318. <a href="mailto:jack@semantic-ui.com?subject=Localization%20Help" target="_blank" class="ui inverted approve teal button">
  319. <i class="mail icon"></i>
  320. Help Translate
  321. </a>
  322. </div>
  323. </div>
  324. <script src="/javascript/library/less.js"></script>
  325. </body>
  326. </html>