def show
@review = Review.find(params[:id], :include => ['project'])
@resource = @review.project
- @review_commands = Review.available_commands_for(Api::ReviewContext.new(:review => @review, :user => current_user))
if has_role?(:user, @resource)
render :partial => 'project_reviews/view'
else
screens = review.violation.available_java_screens(current_user)
screens.each do |screen|
%>
- <%= button_to_remote screen.getCommandKey(),
+ <%= button_to_remote message("reviews.command.#{screen.getCommandKey()}.button"),
:url => {:controller => "project_reviews", :action => "screen", :id => review.id, :command => screen.getCommandKey()},
:update => "actionForm",
:complete => "$('actionButtons').remove();$('actionForm').show();$('selectSeverity').focus();" -%>
<textarea id="actionText" rows="4" name="text" style="width: 100%"></textarea>
<%= submit_to_remote "submit_btn",
- @screen.getCommandKey(),
+ message("reviews.command.#{@screen.getCommandKey()}.submit"),
:url => {:action => 'execute'},
:html => {:id => "submit_btn"},
:before => "$('loading').show();",