AyuntamientoMadrid/participacion

View on GitHub
app/views/pages/help/_menu.html.erb

Summary

Maintainability
Test Coverage
<div class="row">
  <div class="small-12 column">
    <%= link_list(
      (
        [
          t("pages.help.menu.debates"),
          "#debates",
          class: "button hollow expanded"
        ] if feature?(:debates)
      ),
      (
        [
          t("pages.help.menu.proposals"),
          "#proposals",
          class: "button hollow expanded"
        ] if feature?(:proposals)
      ),
      (
        [
          t("pages.help.menu.budgets"),
          "#budgets",
          class: "button hollow expanded"
        ] if feature?(:budgets)
      ),
      (
        [
          t("pages.help.menu.polls"),
          "#polls",
          class: "button hollow expanded"
        ] if feature?(:polls)
      ),
      (
        [
          t("pages.help.menu.processes"),
          "#processes",
          class: "button hollow expanded"
        ] if feature?(:legislation)
      ),
      [
        t("pages.help.menu.other"),
        "#other",
        class: "button hollow expanded"
      ],
      class: "menu-pages", "data-magellan": true
    ) %>
  </div>
</div>