project_history.version_created=Version "{0}" was created for current project and all its sub-projects.
project_history.version_removed=Version "{0}" was removed from current project and all its sub-projects.
project_history.version_already_exists=Version "{0}" already exists.
-project_history.edit_event=Edit
+project_history.rename_event=Rename
project_history.create_event=Create
project_history.remove_event=Remove
project_history.event_updated=Event was successfully updated.
<td class="thin nowrap" style="padding-left: 20px;">
<table class="max-width">
<tr id="version_<%= index -%>">
+ <% if version_event %>
<td class="max-width"><%= version_event.name if version_event -%></td>
<td class="small edit_actions" style="padding-left:20px">
- <a id="version_<%= index -%>_change" href="#" onclick="$('version_<%= index -%>').hide();$('version_<%= index -%>_form').show();$('version_name_<%= index -%>').focus();return false;"><%= version_event ? message('project_history.rename_version') : message('project_history.create_version') -%></a>
+ <a id="version_<%= index -%>_change" href="#" onclick="$('version_<%= index -%>').hide();$('version_<%= index -%>_form').show();$('version_name_<%= index -%>').focus();return false;"><%= message('project_history.rename_version') -%></a>
<% if version_event && !snapshot.islast? %>
<%= link_to( message('project_history.remove_version'),
{ :action => 'delete_version', :sid => snapshot.id},
:confirm => message('project_history.do_you_want_to_remove_version', :params => version_event.name) ) -%>
<% end %>
</td>
+ <% else %>
+ <td class="small edit_actions" colspan="2">
+ <a id="version_<%= index -%>_change" href="#" onclick="$('version_<%= index -%>').hide();$('version_<%= index -%>_form').show();$('version_name_<%= index -%>').focus();return false;"><%= message('project_history.create_version') -%></a>
+ </td>
+ <% end %>
</tr>
<tr id="version_<%= index -%>_form" style="display:none;">
<td coslpan="2" class="admin">
<tr id="event_<%= event_index -%>">
<td class="max-width"><%= event.name -%></td>
<td class="small edit_actions" style="padding-left:20px">
- <a id="event_<%= event_index -%>_change" href="#" onclick="$('event_<%= event_index -%>').hide();$('event_<%= event_index -%>_form').show();$('event_name_<%= event_index -%>').focus();return false;"><%= message('project_history.edit_event') -%></a>
+ <a id="event_<%= event_index -%>_change" href="#" onclick="$('event_<%= event_index -%>').hide();$('event_<%= event_index -%>_form').show();$('event_name_<%= event_index -%>').focus();return false;"><%= message('project_history.rename_event') -%></a>
<%= link_to( message('project_history.remove_version'),
{ :action => 'delete_event', :id => event.id},
:confirm => message('project_history.do_you_want_to_remove_version', :params => event.name) ) -%>
</tr>
<% end %>
<tr id="create_event_<%= index -%>">
- <td colspan="2" class="small right create_actions">
- <a id="create_event_<%= index -%>" href="#" onclick="$('create_event_<%= index -%>').hide();$('create_event_<%= index -%>_form').show();$('create_event_name_<%= index -%>').focus();return false;"><%= message('project_history.create_event') -%></a>
+ <td colspan="2" class="create_actions">
+ <span class="small">
+ <a id="create_event_<%= index -%>" href="#" onclick="$('create_event_<%= index -%>').hide();$('create_event_<%= index -%>_form').show();$('create_event_name_<%= index -%>').focus();return false;"><%= message('project_history.create_event') -%></a>
+ </span>
</td>
</tr>
<tr id="create_event_<%= index -%>_form" style="display:none;">