Sha256: 82fe613907626364a47e65e7926f0dfd274af47e70553f46885ba07063f5d534
Contents?: true
Size: 1.36 KB
Versions: 6
Compression:
Stored size: 1.36 KB
Contents
<% block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12') table = cell(:elements, :table, :container).new table_body = cell(:elements, :table, :body).new %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: LANGUAGES[:lato_blog][:mixed][:languages], size: 6) %> <%=raw table.open %> <%=raw table_body.open %> <% CONFIGS[:lato_blog][:languages].values.each do |language| %> <% if @category.meta_language === language[:identifier] %> <%=raw cell(:elements, :table, :row).new(labels: [language[:title], '']) %> <% elsif @category.get_translation_for_language(language[:identifier]) %> <% language_category = @category.get_translation_for_language(language[:identifier]) %> <%=raw cell(:elements, :table, :row).new(labels: [ language[:title], "<a href='#{lato_blog.category_path(language_category.id)}'>#{LANGUAGES[:lato_blog][:mixed][:show]}</a>" ]) %> <% else %> <%=raw cell(:elements, :table, :row).new(labels: [ language[:title], "<a href='#{lato_blog.new_category_path(language: language[:identifier], parent: @category.category_parent.id)}'>#{LANGUAGES[:lato_blog][:mixed][:create]}</a>" ]) %> <% end %> <% end %> <%=raw table_body.close %> <%=raw table.close %> <%=raw block.close %>
Version data entries
6 entries across 6 versions & 1 rubygems