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.

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