lib/wally/views/layout.haml in wally-0.0.17 vs lib/wally/views/layout.haml in wally-0.0.18

- old
+ new

@@ -15,23 +15,30 @@ %form{:method => "GET", :action => "/search", :id => "search"} %input{:type => "text", :id => "q", :name => "q", :placeholder => 'text, @tags etc.', :value => @q } %input.btn{:type => "submit", :id => "search", :value => "Search"} %div.container-fluid %div.sidebar + %ul + %li + %a{:href => "/search?q="} + = "Scenarios (#{@scenario_count})" + %li + %a{:href => "/"} + = "Features (#{@features.length})" %h2 Features %ul - @features.each do |feature| = haml :feature_link, {:locals => {:feature => feature}, :layout => false} - if @tag_count.any? - %h2 Tags + %h2 Tags (#{@tag_count.length}) %ul - @tag_count.each do |tag, count| %li %a{:href => "/search?q=#{tag}"} = "#{tag} (#{count})" %div.content - if @excessive_wip_tags %div.alert-message.error %p - = "You have #{@tag_count["@wip"]} @wip tags" + = "You have #{@tag_count["@wip"]} @wip tags :(" = yield