Sha256: 15da7017150c90ee27dda4680b977b978e0e3c8025ab2e6fa0b33873a98c54cb

Contents?: true

Size: 1.72 KB

Versions: 10

Compression:

Stored size: 1.72 KB

Contents

<div class="module box <%= renderer.container_class %>"<%=raw renderer.saving_state_enabled? && %Q{ data-toggle="#{renderer.id}"} || nil %>>
  <%= content_tag(:div, class: 'module-heading ' + renderer.heading_class, onclick: (renderer.collapsible? && 'EasyToggler.toggle(this.nextElementSibling, event)' || nil)) do %>
    <%= content_tag(renderer.heading_tag, renderer.heading, class: renderer.icon) %>
    <% if renderer.heading_links.presence %>
      <div class="module-heading-links">
        <a class="module-heading-links__control icon-more-horiz control--<%= renderer.id %>" title="<%= l(:button_heading_links) %>" aria-label="<%= l(:button_heading_links) %>" role="button"></a>
        <ul class="module-heading-links__tooltip tooltip tooltip--<%= renderer.id %>">
          <%= renderer.heading_links %>
          <% if renderer.collapsible? -%>
            <li><span href="#" class="icon-chevron-up module__expander" data-cy="expander__toggle--module" title="Expander" aria-label="Expander" role="button">&nbsp;</span></li>
          <% end -%>
        </ul>
        <script>
          EASY.schedule.require(function(){
            $('.control--<%= renderer.id %>').toggleable({
              observer: EASY.defaultClickObserver,
              content: $('.tooltip--<%= renderer.id %>')
            })},function () {
            return EASY.defaultClickObserver;
          })
        </script>
      </div>
    <% end -%>
  <% end if renderer.heading.present? %>
  <div class="module-content" id="<%= renderer.id %>"<%=raw renderer.collapsed? && %q{ style="display:none"} || nil %>>
    <%= content -%>
    <%= content_tag(:div, class: 'module-content-footer') do %>
      <%= renderer.footer %>
    <% end if renderer.footer.present? %>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
redmine_extensions-1.2.0 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-1.1.2 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-1.1.1 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-1.1.0 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-1.0.0 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-0.6.3 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-0.6.2 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-0.6.1 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-0.6.0 app/views/common/_collapsible_module_layout.html.erb
redmine_extensions-0.5.1 app/views/common/_collapsible_module_layout.html.erb