Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui] Delete requests for project repository targets
Adds a new button "Request repository deletion" next to repositories of projects where you don't have (maintainer) rights.
- Loading branch information
Showing
8 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/webui/app/views/project/_remove_target_request_dialog.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="dialog" id="disable_mask"></div> | ||
<div class="dialog darkgrey_box"> | ||
<div class="box box-shadow"> | ||
<h2 class="box-header">Create Repository Delete Request</h2> | ||
<p>Do you really want to request the deletion of repository <i><%= @repository %></i>?</p> | ||
|
||
<%= form_tag({:controller => 'project', :action => 'remove_target_request'}, :method => 'post') do %> | ||
<%= hidden_field_tag(:project, @project) %> | ||
<%= hidden_field_tag(:repository, @repository) %> | ||
<p> | ||
<%= label_tag(:description, 'Description:') %><br/> | ||
<%= text_area_tag(:description, '', :size => '40x3') %> | ||
</p> | ||
<div class="buttons"> | ||
<%= submit_tag('Ok') %> | ||
<%= link_to_function('Cancel', 'remove_dialog()') %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
2 changes: 2 additions & 0 deletions
2
src/webui/app/views/project/remove_target_request_dialog.js.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$('#dialog_wrapper').show(); | ||
$('#dialog_wrapper').html('<%= escape_javascript(render :partial => 'remove_target_request_dialog') %>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters