From a2aa99e9fddd194c429937e544c7e5a9e3622e0c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 26 Aug 2014 14:00:17 +0200 Subject: [PATCH] Rewrite of navigation controller to reduce re-render counter. --- .../app/views/navigation/menu.jst.eco | 20 +++++++++++++++++++ .../app/views/navigation/private.jst.eco | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 app/assets/javascripts/app/views/navigation/menu.jst.eco create mode 100644 app/assets/javascripts/app/views/navigation/private.jst.eco diff --git a/app/assets/javascripts/app/views/navigation/menu.jst.eco b/app/assets/javascripts/app/views/navigation/menu.jst.eco new file mode 100644 index 000000000..8c4fb991b --- /dev/null +++ b/app/assets/javascripts/app/views/navigation/menu.jst.eco @@ -0,0 +1,20 @@ +<% for item in @items: %> + <% if item.child: %> + + <% else: %> +
  • <%- @T( item.name ) %>
  • + <% end %> +<% end %> \ No newline at end of file diff --git a/app/assets/javascripts/app/views/navigation/private.jst.eco b/app/assets/javascripts/app/views/navigation/private.jst.eco new file mode 100644 index 000000000..21ed9def2 --- /dev/null +++ b/app/assets/javascripts/app/views/navigation/private.jst.eco @@ -0,0 +1,20 @@ +<% for item in @items: %> + <% if item.child: %> + + <% else: %> +
  • <%- @T( item.name ) %>
  • + <% end %> +<% end %> \ No newline at end of file