-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from igorkasyanchuk/autoupdate
autoupdate Recent tab
- Loading branch information
Showing
13 changed files
with
104 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/views/rails_performance/rails_performance/_recent_row.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<tr from_timei="<%= e[:datetimei] %>"> | ||
<td> | ||
<% if e[:request_id].present? %> | ||
<%= link_to rails_performance.rails_performance_trace_path(id: e[:request_id]), remote: true do %> | ||
<span class="stats_icon_max"><%= icon 'activity' %></span> | ||
<% end %> | ||
<% end %> | ||
</td> | ||
<td><%= format_datetime e[:datetime] %></td> | ||
<td><%= link_to e[:controller] + '#' + e[:action], rails_performance.rails_performance_summary_path({controller_eq: e[:controller], action_eq: e[:action]}), remote: true %></td> | ||
<td><%= e[:method] %></td> | ||
<td><%= e[:format] %></td> | ||
<td><%= link_to_path(e) %></td> | ||
<td><%= status_tag e[:status] %></td> | ||
<td class="nowrap"><%= ms e[:duration] %></td> | ||
<td class="nowrap"><%= ms e[:view_runtime] %></td> | ||
<td class="nowrap"><%= ms e[:db_runtime] %></td> | ||
<td> | ||
<% if e[:request_id].present? %> | ||
<%= link_to rails_performance.rails_performance_trace_path(id: e[:request_id]), remote: true do %> | ||
<span class="stats_icon_max"><%= icon 'activity' %></span> | ||
<% end %> | ||
<% end %> | ||
</td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<% @data.each do |e| %> | ||
<%= render 'recent_row', e: e %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,4 +88,8 @@ table th[data-sort] { | |
|
||
.very-small-text { | ||
font-size: 8px; | ||
} | ||
|
||
#autoupdate_label { | ||
cursor: pointer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module RailsPerformance | ||
VERSION = '1.0.2' | ||
VERSION = '1.0.3' | ||
SCHEMA = '1.0.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters