summaryrefslogtreecommitdiff
path: root/web/views/taginfo
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-07 21:11:31 +0200
committerJochen Topf <jochen@topf.org>2014-09-07 21:11:31 +0200
commit026bc7cf6cb062254054c70a46bbf4169cf60be0 (patch)
tree63a2bcbba52e90fc9b8b9e43cb8401f2e61558e2 /web/views/taginfo
parent6c223d609bb05d1f889f08b0a7031bf62845d1e4 (diff)
downloadtaginfo-026bc7cf6cb062254054c70a46bbf4169cf60be0.tar
taginfo-026bc7cf6cb062254054c70a46bbf4169cf60be0.tar.gz
Add an error log that captures parsing problems of project files.
Diffstat (limited to 'web/views/taginfo')
-rw-r--r--web/views/taginfo/project_error_log.erb8
-rw-r--r--web/views/taginfo/projects.erb9
2 files changed, 15 insertions, 2 deletions
diff --git a/web/views/taginfo/project_error_log.erb b/web/views/taginfo/project_error_log.erb
new file mode 100644
index 0000000..5417905
--- /dev/null
+++ b/web/views/taginfo/project_error_log.erb
@@ -0,0 +1,8 @@
+<div class="pre">
+ <h1 class="section">Error log for project <%= h(@data['name']) %></h1>
+</div>
+<div class="box">
+ <pre>
+<%= h(@data['error_log']) %>
+ </pre>
+</div>
diff --git a/web/views/taginfo/projects.erb b/web/views/taginfo/projects.erb
index bca034d..d889aeb 100644
--- a/web/views/taginfo/projects.erb
+++ b/web/views/taginfo/projects.erb
@@ -4,7 +4,7 @@
<tr>
<th>Icon</th>
<th>Project ID<br/>Project Name</th>
- <th>Fetch Date<br/>Updated</th><th>Code</th><th>Res</th>
+ <th>Fetch Date<br/>Updated</th><th>Code</th><th>Status</th>
<th>JSON URL<br/>Data URL</th><th>Fmt<br/>Vers</th>
<th>Project URL<br/>Doc URL</th><th>Contact</th>
<th>Description</th>
@@ -23,7 +23,12 @@
<%= h(project['data_updated']) %>
</td>
<td class="tc<%= c %> nowrap"><%= h(project['fetch_status']) %></td>
- <td class="tc<%= c %> nowrap"><%= h(project['status']) %></td>
+ <td class="tc<%= c %> nowrap">
+ <%= h(project['status']) %></br>
+ <% if project['error_log'] != '' %>
+ <a href="projects/<%= project['id'] %>/error_log"><img src="/img/error.png" width="16" height="16" alt="ERROR" title="Show warnings/errors"/></a>
+ <% end %>
+ </td>
<td class="<%= c %> nowrap">
<a href="<%= h(project['json_url']) %>"><%= h(project['json_url']) %></a><br/>
<a href="<%= h(project['data_url']) %>"><%= h(project['data_url']) %></a>