Sha256: f64e633f8fa6bfea559faea64fdd3b624ee8fbf65e0630a0a6a5fe9865c4d4b9
Contents?: true
Size: 1.78 KB
Versions: 1
Compression:
Stored size: 1.78 KB
Contents
<aside class="posts__aside"> <nav aria-label="<%= t("decidim.components.posts.filter.menuAriaLabel") %>"> <ul> <% filters = [ { filter: 'all', icon: 'function-line' }, { filter: 'post', icon: 'home-5-line' }, { filter: 'sharecare', icon: 'shake-hands-line' }, { filter: 'calendar', icon: 'calendar-line' }, { filter: 'survey', icon: 'draft-line' }, { filter: 'host', icon: 'home-gear-line' } ] %> <% posts_component = current_component.manifest_name == "posts" ? current_component : current_component.participatory_space.components.find_by(manifest_name: "posts") %> <% current_posts_path = Decidim::EngineRouter.main_proxy(posts_component).posts_path %> <% activefilter = if current_user.admin? && params[:filter_post_category].blank? 'host' else params[:filter_post_category] end %> <% filters.each do |filter| %> <li> <%= link_to "#{current_posts_path}?filter_post_category=#{filter[:filter]}", class: (activefilter == filter[:filter] ? 'active' : ''), data: { filter: filter[:filter] }, aria: { current: (params[:filter_post_category] == filter[:filter] ? 'page' : nil) } do %> <%= icon "#{filter[:icon]}" %> <span><%= t("decidim.components.posts.filter.#{filter[:filter]}") %></span> <% end %> </li> <% end %> </ul> </nav> <div class="posts__aside__footer mb-8 mt-auto lg:mt-12"> <div class="w-[72px] bg-white flex flex-col items-center justify-center gap-2"> <% current_component.participatory_space.attachments.each do |sponsor_logo| %> <%= image_tag sponsor_logo.url, class: "max-w-full max-h-full object-contain", alt: translated_attribute(sponsor_logo.title) %> <% end %> </div> </div> </aside>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-posts-1.0.0 | app/views/decidim/posts/posts/_sidebar.html.erb |