summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/annotate.html.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb
index fcb6d3d84..79a548f7e 100644
--- a/app/views/repositories/annotate.html.erb
+++ b/app/views/repositories/annotate.html.erb
@@ -8,8 +8,8 @@
<%= render :partial => 'link_to_functions' %>
+<% if @annotate %>
<% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
-
<div class="autoscroll">
<table class="filecontent annotate syntaxhl">
<tbody>
@@ -38,6 +38,9 @@
</tbody>
</table>
</div>
+<% else %>
+<p id="errorExplanation"><%= @error_message %></p>
+<% end %>
<% html_title(l(:button_annotate)) -%>