Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/webui/app/controllers/request_controller.rb
  2. +1 −1 src/webui/app/views/project/show.html.erb
View
3 src/webui/app/controllers/request_controller.rb
@@ -54,8 +54,9 @@ def modify_review
end
def show
+ redirect_back_or_to :controller => 'home', :action => 'requests' and return if !params[:id]
begin
- @req = find_cached(BsRequest, params[:id]) if params[:id]
+ @req = find_cached(BsRequest, params[:id])
rescue ActiveXML::Transport::Error => e
flash[:error] = "Can't find request #{params[:id]}"
redirect_back_or_to :controller => "home", :action => "requests" and return
View
2 src/webui/app/views/project/show.html.erb
@@ -78,7 +78,7 @@
<% if @project.is_remote? %>
<li>
<%= image_tag 'icons/information.png' %>
- This project is linking the remote obs instance at: <i><a href="<%= @project.value 'remoteurl' %>"><%= @project.value 'remoteurl' %></a></i>
+ Links against the remote OBS instance at: <i><%= link_to_if(@project.value('remoteurl'), @project.value('remoteurl')) %></i>
</li>
<% end %>
<% if @linking_projects.size > 0 %>

No commit comments for this range

Something went wrong with that request. Please try again.