Sha256: 3386ec7e0f0bef452790b5998f2ad0adc5b857c55a5ce23cbbcd79a052117f65

Contents?: true

Size: 877 Bytes

Versions: 4

Compression:

Stored size: 877 Bytes

Contents

<%
  branches = []
  `git branch -a`.split("\n").each do |b|
    next if b.index('HEAD')
    next if b.index('gh-pages')
    next unless b.index('remotes/origin/')
    branches << b.strip.sub('remotes/origin/', '')
  end
  
  branches.sort! do |a, b|
    if a == 'master'
      -1
    elsif b == 'master'
      1
    else
      b <=> a
    end
  end
%>
<% branches.each do |b| %>
  <ol>
    <% title = (b == 'master' ? '最新' : 'スプリント ' + b.gsub(/[a-zA-Z]*/, '')) %>
    <li class="sprint">
      <%= title %>
    </li>
    <li class="sprint sub_menu">
      <a href="../<%= b %>/index.html">仕様書</a>
    </li>
    <li class="sprint sub_menu">
      <a href="../<%= b %>/diary.html">開発日記</a>
    </li>
    <li class="sprint sub_menu">
      <a href="../<%= b %>/coverage/rcov/index.html" target="_blank">カバレッジ</a>
    </li>
  </ol>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
daddy-0.0.8 lib/daddy/formatter/menu.html.erb
daddy-0.0.7 lib/daddy/formatter/menu.html.erb
daddy-0.0.6 lib/daddy/formatter/menu.html.erb
daddy-0.0.5 lib/daddy/formatter/menu.html.erb