Sha256: a4baa415db01228339961464ca1fe9b9ae7f419fa32827a20b205f87397fa7a3

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

<div class="navbar">
  <ol>
  <%
    i = 1
    pages = res[:all_pages]
    page_path = res[:page_path]
    pages.each do |p|
      nav_name = doop[p]["_nav_name"]

      if p == page_path %>
        <li class="doing"><%="#{i}. #{nav_name}"%></li>
      <% elsif doop[p]["_answered"] %>
        <li class="done"><a href="#" onclick="$('#nav_path').val('<%=p %>').click(); return false"><%="#{i}. #{nav_name}" %></a></li>
      <% else %>
        <li class="todo"><%="#{i}. #{nav_name}"%></li>
     <%
      end
      i +=1
    end %>
  </ol>

</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doop-0.0.3.1 lib/generators/doopgovuk/templates/app/views/doop/_navbar.html.erb
doop-0.0.2 lib/generators/doopgovuk/templates/app/views/doop/_navbar.html.erb
doop-0.0.1 lib/generators/doopgovuk/templates/app/views/doop/_navbar.html.erb