Improved shown title.

This commit is contained in:
Martin Edenhofer 2012-10-15 07:54:50 +02:00
parent 5bfccfd058
commit 8359cf4665

View file

@ -23,22 +23,23 @@
</td> </td>
<% end %> <% end %>
<% for row in @overview: %> <% for row in @overview: %>
<% displayName = '' %>
<% if typeof object[row.name] is 'object': %> <% if typeof object[row.name] is 'object': %>
<% displayName = object[row.name].displayNameLong() %> <% displayName = object[row.name].displayNameLong() %>
<% else: %> <% else: %>
<% displayName = object[row.name] %> <% displayName = object[row.name] %>
<% end %> <% end %>
<% if row.translate: %><% displayName = T(displayName) %><% end %> <% if row.translate: %><% displayName = T(displayName) %><% end %>
<% displayNameTitle = displayName %> <% if row.title: %>
<% if row.title && object[row.title]: %> <% displayNameTitle = displayName %>
<% if typeof object[row.title] is 'object': %> <% if object[row.title]: %>
<% displayNameTitle = object[row.title].displayNameLong() %> <% if typeof object[row.title] is 'object': %>
<% else: %> <% displayNameTitle = object[row.title].displayNameLong() %>
<% displayNameTitle = object[row.title] %> <% else: %>
<% displayNameTitle = object[row.title] %>
<% end %>
<% end %> <% end %>
<% end %> <% end %>
<td <% if row.title: %>title="<%= displayNameTitle %>"<% end %>> <td <% if row.title: %>title="<%= displayNameTitle %>"<% end %>>
<% if row.link: %><a href="#" data-type="edit"><% else: %><span <% if row.class: %>class="<%= row.class %>"<% end %> <% if row.data && row.data.id: %>data-id="<%= object[row.name].id %>"<% end %>><% end %> <% if row.link: %><a href="#" data-type="edit"><% else: %><span <% if row.class: %>class="<%= row.class %>"<% end %> <% if row.data && row.data.id: %>data-id="<%= object[row.name].id %>"<% end %>><% end %>
<% if row.translate || row.callback: %><%- displayName %><% else: %><%= displayName %><% end %> <% if row.translate || row.callback: %><%- displayName %><% else: %><%= displayName %><% end %>
<% if row.link: %></a><% else: %></span><% end %> <% if row.link: %></a><% else: %></span><% end %>