Sha256: aa21b580a7a69d715c9e67bbb47c3f2e4dd84c87c4dc8b46fe921bf172f447bb
Contents?: true
Size: 1.95 KB
Versions: 8
Compression:
Stored size: 1.95 KB
Contents
<% size_factor = 0.2 %> <div id="minimap-wrapper"> <div id="minimap" class="grid grid-cols-1 md:grid-cols-2"> <div class="minimap-tab"> <% if current_organization.favicon.attached? %> <%= image_tag current_organization.attached_uploader(:favicon).path, class: "minimap-favicon" %> <% else %> <%= content_tag :div, nil, { class: "minimap-favicon placeholder", style: "width: #{image_width(current_organization, :favicon) * size_factor}px; height: #{image_height(current_organization, :favicon) * size_factor}px;" } do %> <span><%= t("favicon", scope: "activemodel.attributes.organization") %></span> <% end %> <% end %> </div> <div class="minimap-header"> <% if current_organization.logo.present? %> <%= image_tag current_organization.attached_uploader(:logo).path, class: "minimap-logo" %> <% else %> <%= content_tag :div, nil, { class: "minimap-logo placeholder", style: "width: #{image_width(current_organization, :logo) * size_factor}px; height: #{image_height(current_organization, :logo) * size_factor}px;" } do %> <span><%= t("logo", scope: "activemodel.attributes.organization") %></span> <% end %> <% end %> </div> <div class="minimap-navbar"></div> <div class="minimap-body"></div> <div class="minimap-footer"> <% if current_organization.official_img_footer.attached? %> <%= image_tag current_organization.attached_uploader(:official_img_footer).path, class: "minimap-official_img_footer" %> <% else %> <%= content_tag :div, nil, { class: "minimap-official_img_footer placeholder", style: "width: #{image_width(current_organization, :official_img_footer) * size_factor}px; height: #{image_height(current_organization, :official_img_footer) * size_factor}px;" } do %> <span><%= t("official_img_footer", scope: "activemodel.attributes.organization") %></span> <% end %> <% end %> </div> </div> </div>
Version data entries
8 entries across 8 versions & 1 rubygems