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.

34 lines
1.5 KiB

  1. <% @tabs = { definition: 'Definition', usage: 'Usage', examples: 'Examples', behaviors: 'Behaviors', settings: 'Settings' } if @tabs == 'module' %>
  2. <div class="<% if @tabs?: %>tab <% end %>segment">
  3. <div class="container">
  4. <div class="introduction">
  5. <h1 class="ui dividing header">
  6. <%=@document.title %>
  7. <% if @document.status?: %><span class="ui label"><%= @document.status %></span><% end %>
  8. </h1>
  9. <p><%=@document.description %></p>
  10. <% if @document.type is 'UI Element' or @document.type is 'UI View' or @document.type is 'UI Collection' or @document.type is 'UI Module': %>
  11. <div class="ui basic labeled icon toggle overview button">
  12. Definition
  13. <i class="book icon"></i>
  14. </div>
  15. <% end %>
  16. <% index = 0 %>
  17. <% if @tabs?: %>
  18. <div class="ui tabular menu">
  19. <% for id, name of @tabs: %>
  20. <a class="<%= if index == 0 then 'active ' %>item" data-tab="<%= id %>"><%= name %></a>
  21. <% index++ %>
  22. <% end %>
  23. </div>
  24. <% end %>
  25. </div>
  26. <div class="advertisement">
  27. <div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/51619/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
  28. </div>
  29. </div>
  30. </div>