diff options
| author | hukl <contact@smyck.org> | 2009-03-28 15:43:46 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-28 15:43:46 +0100 |
| commit | 4993909e278731463010ef45211cd22ef1b2794c (patch) | |
| tree | 3f7fcb1bf3765bd0e32303679fd9533e99cb5e8c /app/views | |
| parent | 06ec666fa8fad0aafe7d8e505f6e92b729fccbce (diff) | |
renamed the user association on nodes to lock_owner as it is more specific for its purpose
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/admin/index.html.erb | 2 | ||||
| -rw-r--r-- | app/views/nodes/index.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/index.html.erb b/app/views/admin/index.html.erb index c5bb5de..b40f92a 100644 --- a/app/views/admin/index.html.erb +++ b/app/views/admin/index.html.erb | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | <td><%= draft.id %></td> | 12 | <td><%= draft.id %></td> |
| 13 | <td><%= draft.title %></td> | 13 | <td><%= draft.title %></td> |
| 14 | <td><%= draft.node.unique_name %></td> | 14 | <td><%= draft.node.unique_name %></td> |
| 15 | <td><%= draft.user.login rescue "" %></td> | 15 | <td><%= draft.node.lock_owner.login rescue "" %></td> |
| 16 | <td><%= link_to 'Show', node_path(draft.node) %></td> | 16 | <td><%= link_to 'Show', node_path(draft.node) %></td> |
| 17 | <td><%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %></td> | 17 | <td><%= link_to "Diff revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %></td> |
| 18 | <td><%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %></td> | 18 | <td><%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %></td> |
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 53ddb5b..be63de3 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> | 28 | <%= link_to 'Unlock', unlock_node_path(node), :method => :put, :confirm => "Are you sure you want to unlock?" %> |
| 29 | </td> | 29 | </td> |
| 30 | <td> | 30 | <td> |
| 31 | <%= node.user.login if node.user %> | 31 | <%= node.lock_owner.login if node.lock_owner %> |
| 32 | </td> | 32 | </td> |
| 33 | <td> | 33 | <td> |
| 34 | <%= node.draft ? node.draft.revision : node.head.revision %> | 34 | <%= node.draft ? node.draft.revision : node.head.revision %> |
