aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/admin_general/timeline.rhtml12
-rw-r--r--app/views/admin_request/show.rhtml4
2 files changed, 8 insertions, 8 deletions
diff --git a/app/views/admin_general/timeline.rhtml b/app/views/admin_general/timeline.rhtml
index ec5b860e5..9b9b39646 100644
--- a/app/views/admin_general/timeline.rhtml
+++ b/app/views/admin_general/timeline.rhtml
@@ -1,12 +1,12 @@
<% @title = "Timeline" %>
<div class="btn-toolbar">
<div class="btn-group">
- <a class="btn" href="?hour=1">Hour</a>
- <a class="btn" href="?day=1">Day</a>
- <a class="btn" href="?">2 days</a>
- <a class="btn" href="?week=1">Week</a>
- <a class="btn" href="?month=1">Month</a>
- <a class="btn" href="?all=1">All time</a>
+ <%= link_to "Hour", admin_timeline_path(:hour => 1), :class => "btn" %>
+ <%= link_to "Day", admin_timeline_path(:day => 1), :class => "btn" %>
+ <%= link_to "2 days", admin_timeline_path, :class => "btn" %>
+ <%= link_to "Week", admin_timeline_path(:week => 1), :class => "btn" %>
+ <%= link_to "Month", admin_timeline_path(:month => 1), :class => "btn" %>
+ <%= link_to "All time", admin_timeline_path(:all => 1), :class => "btn" %>
</div>
</div>
<div class="row">
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml
index 27f7fca1b..f987921e7 100644
--- a/app/views/admin_request/show.rhtml
+++ b/app/views/admin_request/show.rhtml
@@ -329,12 +329,12 @@
<div class="accordion-group">
<div class="accordion-heading">
<a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="#comments"><i class="icon-chevron-right"></i></a>
- <a href="<%= admin_request_edit_comment_path(comment) %>">
+ <% link_to admin_request_edit_comment_path(comment) do %>
#<%=comment.id%>
--
<%=h(comment.user.name)%>
<%=admin_value(comment.created_at)%>
- </a>
+ <% end %>
<blockquote class="incoming-message">
<%= truncate(comment.body, :length => 400) %>
</blockquote>