Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ddompe
obs-server
2_1_BRANCH.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2_1_BRANCH.diff of Package obs-server
commit 91cbfe7fea13f4cb4cb793148c4cde52d4200b58 Author: Adrian Schröter <adrian@suse.de> Date: Tue Oct 19 11:14:24 2010 +0200 [webui] fix missing link to add new source files when no sources exist yet at all (bug #640361) diff --git a/src/webui/app/views/package/_files_view.html.erb b/src/webui/app/views/package/_files_view.html.erb index ad7846d..8fff47b 100644 --- a/src/webui/app/views/package/_files_view.html.erb +++ b/src/webui/app/views/package/_files_view.html.erb @@ -71,6 +71,13 @@ --> <% else %> <p><i>This package has no files yet</i></p> + + <% if @package.can_edit?( session[:login] ) %> + <p><%= link_to image_tag('icons/page_white_add.png', :alt => "Add", :title => "Add File"), + :action => :add_file, :project => @project, :package => @package %> + <%= link_to 'Add File', :action => :add_file, :project => @project, :package => @package %> + </p> + <% end %> <% end %> </div>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor