add the link to thieris homepage
This commit is contained in:
parent
14445d0801
commit
10a14d5e82
|
@ -351,10 +351,10 @@ class Project < ActiveRecord::Base
|
|||
base_reload(*args)
|
||||
end
|
||||
|
||||
def to_param
|
||||
# id is used for projects with a numeric identifier (compatibility)
|
||||
@to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier)
|
||||
end
|
||||
# def to_param
|
||||
# # id is used for projects with a numeric identifier (compatibility)
|
||||
# @to_param ||= (identifier.to_s =~ %r{^\d*$} ? id.to_s : identifier)
|
||||
# end
|
||||
|
||||
def active?
|
||||
self.status == STATUS_ACTIVE
|
||||
|
|
|
@ -47,8 +47,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 8px"><a>http://forge.trustie.net/calls</a></td>
|
||||
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> > <span><%=link_to @bid.name ,bid_path %></span></td>
|
||||
<td style="padding-left: 8px"><a><%= link_to "http://forge.trustie.net/calls", :controller => 'bids', :action => 'index' %> </a></td>
|
||||
<td ><%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_requirement_enterprise), :controller => 'bids', :action => 'index' %> >
|
||||
<span><%=link_to @bid.name ,bid_path %></span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-left: 8px"><a>forge.trustie.net/courses</a></td>
|
||||
<td style="padding-left: 8px"><a><%= link_to "forge.trustie.net/courses", :controller => 'projects', :action => 'course'%></a></td>
|
||||
<td ><%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'course' %> >
|
||||
<span><%= link_to(@bid.courses.first.name.slice(0..6), project_path(@bid.courses.first)) %></span> >
|
||||
<%=link_to(@bid.name, respond_path(@bid))%></td>
|
||||
|
|
|
@ -133,7 +133,7 @@ RedmineApp::Application.routes.draw do
|
|||
post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue'
|
||||
delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue'
|
||||
|
||||
resources :bids, :only=>[:edit,:update]
|
||||
resources :bids, :only=>[:edit,:update,:show]
|
||||
resources :projects do
|
||||
member do
|
||||
get 'settings(/:tab)', :action => 'settings', :as => 'settings'
|
||||
|
|
Loading…
Reference in New Issue