Skip to content

Commit

Permalink
Fix views
Browse files Browse the repository at this point in the history
  • Loading branch information
melkor217 committed Jun 1, 2016
1 parent b4392ac commit f8db469
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 19 deletions.
30 changes: 15 additions & 15 deletions app/views/layouts/_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li class="<%=cp(countries_path)%>"><a href="<%= countries_path %>">Countries</a></li>
<li class="<%=cp(weapons_path)%>"><a href="<%= weapons_path %>">Weapons</a></li>
<li class="<%=cp(frags_path)%>"><a href="<%= frags_path %>">Frags</a></li>
<li class="dropdown">
<!-- <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
Expand All @@ -30,7 +30,7 @@
<li role="separator" class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</li>-->
</ul>
<%#
<form class="navbar-form navbar-left" role="search">
Expand All @@ -39,19 +39,19 @@
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form> %>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
<!-- <ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>-->
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
1 change: 0 additions & 1 deletion app/views/players/_playertable.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<table id="table" class="fixed player-table"
data-toggle="table"
data-show-refresh="true"
data-show-toggle="true"
data-show-columns="true"
data-flat="true"
data-url="<%= players_path(format: :json, countryId: params[:countryId]) %>"
Expand Down
2 changes: 0 additions & 2 deletions app/views/players/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<p id="notice"><%= notice %></p>


<h1>Listing Players</h1>
<%= render 'players/playertable' %>
<br>
1 change: 1 addition & 0 deletions app/views/servers/_show.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ json.extract! server, :id, :name, :publicaddress, :kills, :headshots, :act_map,
json.livestats_players server.livestats_players.count
json.url server_path(server, format: :json)
json.path server_path(server)
json.map_started Time.at(Time.now - server.map_started).utc.strftime("%H:%M:%S")
2 changes: 1 addition & 1 deletion app/views/servers/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="row">
<div class="col-md-6">
<div class="container">
<%= react_component 'ServerList', {url: servers_path(format: :json)} %>
</div>
</div>

0 comments on commit f8db469

Please sign in to comment.