Skip to content

Commit

Permalink
細かい表示修正
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Mar 2, 2013
1 parent f5b7266 commit 5c65ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin_controller.rb
Expand Up @@ -18,7 +18,7 @@ def game

def players
if authenticate()
@players = Player.all
@players = Player.find(:all, :order => "number")
respond_to do |format|
format.html { render :layout => false }
end
Expand Down
12 changes: 1 addition & 11 deletions app/views/admin/game.html.erb
Expand Up @@ -5,17 +5,7 @@
<div class="contents">
<div class="row-fluid">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-pills nav-stacked affix">
<li <% if controller.action_name == 'game' %>class="active"<% end %>>
<%= link_to('試合登録', {:controller => 'admin', :action => 'game'}) %>
</li>
<li <% if controller.action_name == 'list' %>class="active"<% end %>>
<%= link_to('選手リスト', {:controller => 'admin', :action => 'players'}) %>
</li>
<li <% if controller.action_name == 'list' %>class="active"<% end %>>
<%= link_to('一括更新', {:controller => 'admin', :action => 'players'}) %>
</li>
</ul>
<%= render(:partial => "sidebar") %>
</div>
<div class="span9 main">
<h5>直近の試合を登録</h5>
Expand Down

0 comments on commit 5c65ace

Please sign in to comment.