fixing the data browser to be able to cope with the changeset change. changeset browsing still needs to be implemented. Also giving a nice error message for 404 not found instead of rendering nothing.
This commit is contained in:
parent
24b21e4a29
commit
734cbb967d
3 changed files with 21 additions and 14 deletions
|
@ -3,10 +3,10 @@
|
|||
<td><%= h(common_details.timestamp) %></td>
|
||||
</tr>
|
||||
|
||||
<% if common_details.user.data_public %>
|
||||
<% if common_details.changeset.user.data_public %>
|
||||
<tr>
|
||||
<th>Edited by:</th>
|
||||
<td><%= link_to h(common_details.user.display_name), :controller => "user", :action => "view", :display_name => common_details.user.display_name %></td>
|
||||
<td><%= link_to h(common_details.changeset.user.display_name), :controller => "user", :action => "view", :display_name => common_details.changeset.user.display_name %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
|
|
1
app/views/browse/not_found.rhtml
Normal file
1
app/views/browse/not_found.rhtml
Normal file
|
@ -0,0 +1 @@
|
|||
<p>Sorry, the <%= @type -%> with the id <%= params[:id] -%>, could not be found.</p>
|
Loading…
Add table
Add a link
Reference in a new issue