Merge branch 'eval-code'
[MojoFacets.git] / templates / actions / changes.html.ep
index cb5f9a8..d1e5eb5 100644 (file)
@@ -11,6 +11,9 @@
 <option<%= $p eq $apply_on_path ? ' selected' : '' %>><%= $p %></option>
 % }
 </select>
+
+<span class=count><%= $#{ $changes } + 1 %></span>
+
 <label><input type=checkbox name=dump <%= $dump ? 'checked' : '' %>>dump</label>
 
 % if ( $apply_on_path ) {
 %  }
 </ul>
 
+%  if ( ! param('commit') ) {
 <input type=submit name=commit value="Commit changes">
+%  } else {
+<b>
+Changes commited to <a href="<%= url_for( controller => 'data', action => 'load' )->query( path => $apply_on_path ) %>"><%= $apply_on_path %></a>
+</b>
+%  }
 
 % }