fixtures fix, header fix dynamic.

This commit is contained in:
yanxd 2014-02-19 17:23:24 +08:00
parent b06d5c13a8
commit 3d274be77b
3 changed files with 59 additions and 80 deletions

View File

@ -12,10 +12,10 @@
<%=link_to_user(User.current)%> <%=link_to_user(User.current)%>
<ul class="sub_menu"> <ul class="sub_menu">
<% if User.current.user_extensions && [UserExtensions::TEACHER, UserExtensions::STUDENT].include?(User.current.user_extensions.identity) -%> <% if User.current.user_extensions && [UserExtensions::TEACHER, UserExtensions::STUDENT].include?(User.current.user_extensions.identity) -%>
<li><%=link_to l(:label_my_course), user_courses_user_path(User.current), target:'my_path' %></li> <li><%=link_to l(:label_my_course), user_courses_user_path(User.current) %></li>
<% end -%> <% end -%>
<li><%=link_to l(:label_my_projects), user_projects_user_path(User.current), target:'my_path' %></li> <li><%=link_to l(:label_my_projects), user_projects_user_path(User.current) %></li>
<li><%=link_to l(:label_user_edit), my_account_path, target:'my_path' %></li> <li><%=link_to l(:label_user_edit), my_account_path %></li>
</ul> </ul>
</li> </li>
<li style="padding:0 0; margin:0 0;display:inline;border-bottom: 0;"> <li style="padding:0 0; margin:0 0;display:inline;border-bottom: 0;">

View File

@ -14,9 +14,9 @@ production:
development: development:
adapter: mysql2 adapter: mysql2
database: redmine_development database: redmine_development
host: localhost host: 10.107.17.20
username: root username: root
password: "" password: "1234"
encoding: utf8 encoding: utf8
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
@ -25,9 +25,9 @@ development:
test: test:
adapter: mysql2 adapter: mysql2
database: redmine_test database: redmine_test
host: localhost host: 10.107.17.20
username: root username: root
password: "" password: "1234"
encoding: utf8 encoding: utf8
# PostgreSQL configuration example # PostgreSQL configuration example

View File

@ -10,7 +10,7 @@ courses_006:
created_at: 2013-09-30 08:11:15.000000000 +08:00 created_at: 2013-09-30 08:11:15.000000000 +08:00
updated_at: 2013-10-11 12:34:29.000000000 +08:00 updated_at: 2013-10-11 12:34:29.000000000 +08:00
location: location:
term: 秋季学期 term: "秋季学期"
string: string:
password: software password: software
setup_time: setup_time:
@ -27,7 +27,7 @@ courses_004:
created_at: 2013-09-27 11:16:11.000000000 +08:00 created_at: 2013-09-27 11:16:11.000000000 +08:00
updated_at: 2013-12-21 10:55:20.000000000 +08:00 updated_at: 2013-12-21 10:55:20.000000000 +08:00
location: location:
term: 秋季学期 term: "秋季学期"
string: string:
password: '123456' password: '123456'
setup_time: '' setup_time: ''
@ -44,7 +44,7 @@ courses_012:
created_at: 2013-10-08 20:52:10.000000000 +08:00 created_at: 2013-10-08 20:52:10.000000000 +08:00
updated_at: 2013-10-08 20:52:10.000000000 +08:00 updated_at: 2013-10-08 20:52:10.000000000 +08:00
location: location:
term: 秋季学期 term: "秋季学期"
string: string:
password: software password: software
setup_time: setup_time:
@ -61,30 +61,9 @@ courses_020:
created_at: 2013-10-21 20:47:58.000000000 +08:00 created_at: 2013-10-21 20:47:58.000000000 +08:00
updated_at: 2014-01-08 09:48:56.000000000 +08:00 updated_at: 2014-01-08 09:48:56.000000000 +08:00
location: location:
term: 秋季学期 term: '秋季学期'
string: string:
password: multi-agent password: multi-agent
setup_time: '' setup_time: ''
endup_time: '' endup_time: ''
class_period: '' class_period: ''