commit
cc5171bc1d
@ -1,83 +1,84 @@
|
|||||||
source 'http://ruby.taobao.org'
|
source 'http://ruby.taobao.org'
|
||||||
#source 'http://ruby.sdutlinux.org/'
|
#source 'http://ruby.sdutlinux.org/'
|
||||||
|
|
||||||
unless RUBY_PLATFORM =~ /w32/
|
unless RUBY_PLATFORM =~ /w32/
|
||||||
# unix-like only
|
# unix-like only
|
||||||
gem 'iconv'
|
gem 'iconv'
|
||||||
end
|
end
|
||||||
|
|
||||||
gem "mysql2", "= 0.3.18"
|
gem 'rest-client'
|
||||||
gem 'redis-rails'
|
gem "mysql2", "= 0.3.18"
|
||||||
gem 'rubyzip'
|
gem 'redis-rails'
|
||||||
gem 'delayed_job_active_record'#, :group => :production
|
gem 'rubyzip'
|
||||||
gem 'daemons'
|
gem 'delayed_job_active_record'#, :group => :production
|
||||||
gem 'grape', '~> 0.9.0'
|
gem 'daemons'
|
||||||
gem 'grape-entity'
|
gem 'grape', '~> 0.9.0'
|
||||||
gem 'seems_rateable', '~> 1.0.13'
|
gem 'grape-entity'
|
||||||
gem "rails", "3.2.13"
|
gem 'seems_rateable', '~> 1.0.13'
|
||||||
gem "jquery-rails", "~> 2.0.2"
|
gem "rails", "3.2.13"
|
||||||
gem "i18n", "~> 0.6.0"
|
gem "jquery-rails", "~> 2.0.2"
|
||||||
gem 'coderay', '~> 1.1.0'
|
gem "i18n", "~> 0.6.0"
|
||||||
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
gem 'coderay', '~> 1.1.0'
|
||||||
gem "builder", "3.0.0"
|
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
||||||
gem 'acts-as-taggable-on', '2.4.1'
|
gem "builder", "3.0.0"
|
||||||
gem 'spreadsheet'
|
gem 'acts-as-taggable-on', '2.4.1'
|
||||||
gem 'ruby-ole'
|
gem 'spreadsheet'
|
||||||
gem 'rails_kindeditor',path:'lib/rails_kindeditor'
|
gem 'ruby-ole'
|
||||||
gem "rmagick", ">= 2.0.0"
|
gem 'rails_kindeditor',path:'lib/rails_kindeditor'
|
||||||
|
#gem "rmagick", ">= 2.0.0"
|
||||||
group :development do
|
|
||||||
gem 'grape-swagger'
|
group :development do
|
||||||
gem 'better_errors', '~> 1.1.0'
|
gem 'grape-swagger'
|
||||||
gem 'rack-mini-profiler', '~> 0.9.3'
|
gem 'better_errors', '~> 1.1.0'
|
||||||
end
|
gem 'rack-mini-profiler', '~> 0.9.3'
|
||||||
|
end
|
||||||
group :development, :test do
|
|
||||||
unless RUBY_PLATFORM =~ /w32/
|
group :development, :test do
|
||||||
gem 'pry-rails'
|
unless RUBY_PLATFORM =~ /w32/
|
||||||
if RUBY_VERSION >= '2.0.0'
|
gem 'pry-rails'
|
||||||
gem 'pry-byebug'
|
if RUBY_VERSION >= '2.0.0'
|
||||||
end
|
gem 'pry-byebug'
|
||||||
gem 'pry-stack_explorer'
|
end
|
||||||
end
|
gem 'pry-stack_explorer'
|
||||||
|
end
|
||||||
gem 'rspec-rails', '~> 3.0'
|
|
||||||
gem 'factory_girl_rails'
|
gem 'rspec-rails', '~> 3.0'
|
||||||
end
|
gem 'factory_girl_rails'
|
||||||
|
end
|
||||||
# Gems used only for assets and not required
|
|
||||||
# in production environments by default.
|
# Gems used only for assets and not required
|
||||||
group :assets do
|
# in production environments by default.
|
||||||
gem 'sass-rails', '~> 3.2.3'
|
group :assets do
|
||||||
gem 'coffee-rails', '~> 3.2.1'
|
gem 'sass-rails', '~> 3.2.3'
|
||||||
|
gem 'coffee-rails', '~> 3.2.1'
|
||||||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
|
||||||
gem 'therubyracer', :platforms => :ruby
|
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
||||||
|
gem 'therubyracer', :platforms => :ruby
|
||||||
gem 'uglifier', '>= 1.0.3'
|
|
||||||
end
|
gem 'uglifier', '>= 1.0.3'
|
||||||
|
end
|
||||||
# Optional gem for LDAP authentication
|
|
||||||
group :ldap do
|
# Optional gem for LDAP authentication
|
||||||
gem "net-ldap", "~> 0.3.1"
|
group :ldap do
|
||||||
end
|
gem "net-ldap", "~> 0.3.1"
|
||||||
|
end
|
||||||
|
|
||||||
# Optional gem for OpenID authentication
|
|
||||||
group :openid do
|
# Optional gem for OpenID authentication
|
||||||
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
group :openid do
|
||||||
gem "rack-openid"
|
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
||||||
end
|
gem "rack-openid"
|
||||||
|
end
|
||||||
|
|
||||||
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
|
||||||
if File.exist?(database_file)
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
||||||
else
|
if File.exist?(database_file)
|
||||||
warn("Please configure your config/database.yml first")
|
else
|
||||||
end
|
warn("Please configure your config/database.yml first")
|
||||||
|
end
|
||||||
# Load plugins' Gemfiles
|
|
||||||
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
# Load plugins' Gemfiles
|
||||||
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
||||||
instance_eval File.read(file)
|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
||||||
end
|
instance_eval File.read(file)
|
||||||
|
end
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class InviteList < ActiveRecord::Base
|
||||||
|
attr_accessible :project_id, :user_id
|
||||||
|
# belongs_to :user
|
||||||
|
# belongs_to :project
|
||||||
|
end
|
@ -1,9 +1,12 @@
|
|||||||
<%= form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
<%= form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'}, :html => {:nhname=>'form',:multipart => true, :id => 'message-form'} do |f| %>
|
||||||
|
|
||||||
<%= render :partial => 'form_course', :locals => {:f => f, :topic => @message} %>
|
<%= render :partial => 'form_course', :locals => {:f => f, :topic => @message} %>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:void(0)" onclick="show_newtalk();" class="grey_btn fr ml10"><%= l(:button_cancel) %></a>
|
<div class="ml55 fl" nhname="toolbar_container"></div>
|
||||||
<a href="#" onclick="submitProjectsBoard('<%= @message.id %>')" class="blue_btn fr " style="margin-left: 55px"><%= l(:button_submit)%></a>
|
<a href="javascript:void(0);" nhname="cancelbtn" class="grey_btn fr ml10"><%= l(:button_cancel) %></a>
|
||||||
|
<a href="javascript:void(0);" nhname="submitbtn" class="blue_btn fr " style="margin-left: 55px">
|
||||||
|
<%= l(:button_submit)%>
|
||||||
|
</a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
<%= form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
<%= form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'},:html => {:nhname=>'form', :multipart => true, :id => 'message-form', :name=>'message-form'} do |f| %>
|
||||||
|
|
||||||
<%= render :partial => 'form_project', :locals => {:f => f, :topic => @message} %>
|
<%= render :partial => 'form_project', :locals => {:f => f, :topic => @message} %>
|
||||||
<li>
|
<li>
|
||||||
<a href="javascript:void(0)" onclick="show_newtalk();" class="grey_btn fr ml10"><%= l(:button_cancel) %></a>
|
<div class="ml55 fl" nhname="toolbar_container"></div>
|
||||||
|
<a href="javascript:void(0)" nhname="cancelbtn" class="grey_btn fr ml10"><%= l(:button_cancel) %></a>
|
||||||
|
|
||||||
<a href="#" onclick="submitProjectsBoard('<%= @message.id %>')" class="blue_btn fr " style="margin-left: 55px"><%= l(:button_submit)%></a>
|
<a href="javascript:void(0)" nhname="submitbtn" class="blue_btn fr " style="margin-left: 55px"><%= l(:button_submit)%></a>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
@ -0,0 +1,39 @@
|
|||||||
|
<% delete_allowed = User.current.allowed_to?(:manage_files, course) %>
|
||||||
|
<% if file.is_public? || User.current.member_of_course?(course) %>
|
||||||
|
<div class="re_con_box" id="container_files_<%= file.id %>">
|
||||||
|
<div class="">
|
||||||
|
<%= link_to_attachment file, :download => true,:text => truncate(file.filename,length: 35, omission: '...'), :title => file.filename+"\n"+file.description.to_s,:class => "c_dblue f_14 f_b f_l hiddent" %>
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<% if (is_course_teacher(User.current,@course) || file.author_id == User.current.id) && course_contains_attachment?(@course,file) %>
|
||||||
|
<%= link_to("选入我的其他课程",quote_resource_show_course_file_path(@course,file),:class => "f_l re_select c_lorange",:remote => true) if has_course?(User.current,file) %>
|
||||||
|
|
||||||
|
<% if delete_allowed && file.container_id == @course.id && file.container_type == "Course" %>
|
||||||
|
<span id="is_public_<%= file.id %>">
|
||||||
|
<%= link_to (file.is_public? ? "公开":"私有"), update_file_dense_attachments_path(:attachmentid=>file.id,:newtype=>(file.is_public? ? 0:1)),:remote=>true,:class=>"f_l re_open c_blue",:method => :post %>
|
||||||
|
</span>
|
||||||
|
<% else %>
|
||||||
|
<!-- <#%= link_to (file.is_public? ? "公开":"私有"),"javascript:void(0)",:class=>"f_l re_open" %> -->
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<%= link_to("选入我的课程",quote_resource_show_course_file_path(@course,file),:class => "f_l re_select c_lorange",:remote => true) if has_course?(User.current,file) %>
|
||||||
|
<% end %>
|
||||||
|
<% else %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="">
|
||||||
|
<p class="f_l mb5 c_grey02">文件大小:<%= number_to_human_size(file.filesize) %></p>
|
||||||
|
<%= link_to( l(:button_delete), attachment_path(file),
|
||||||
|
:data => {:confirm => l(:text_are_you_sure)}, :method => :delete,:class => "f_r re_de") if delete_allowed && file.container_id == @course.id && file.container_type == "Course"%>
|
||||||
|
<p class="f_r c_grey02" ><%= time_tag(file.created_on).html_safe %><%= l(:label_bids_published_ago) %> | 下载<%= file.downloads %> | 引用<%= file.quotes.nil? ? 0:file.quotes %> </p>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
<div class="tag_h">
|
||||||
|
<%= render :partial => 'tags/tag_new', :locals => {:obj => file, :object_flag => "6",:tag_name => @tag_name} %>
|
||||||
|
<%= render :partial => 'tags/tag_add', :locals => {:obj => file, :object_flag => "6",:tag_name => @tag_name} %>
|
||||||
|
</div>
|
||||||
|
<div class="cl"></div>
|
||||||
|
</div><!---re_con_box end-->
|
||||||
|
<% else %>
|
||||||
|
<div class="re_con_box"><span class='fr mr10 pr_join_span '><%= file.filename %>是私有资源</span></div>
|
||||||
|
<% end %>
|
@ -1,8 +1,6 @@
|
|||||||
<!--added by huang-->
|
<!--added by huang-->
|
||||||
<%#= watcher_link_issue(@issue, User.current) %>
|
<%#= watcher_link_issue(@issue, User.current) %>
|
||||||
<%#= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:add_issues, @project) %>
|
<%= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'talk_edit fr' if User.current.allowed_to?(:add_issues, @project) %>
|
||||||
<%= link_to l(:button_delete), issue_path(@issue.id), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'talk_edit fr' if User.current.allowed_to?(:delete_issues, @project) %>
|
<%= link_to l(:button_delete), issue_path(@issue.id), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'talk_edit fr' if User.current.allowed_to?(:delete_issues, @project) %>
|
||||||
|
<%= link_to l(:button_edit), edit_issue_path(@issue.id), :onclick => 'showAndScrollTo("all_attributes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:edit_issues, @project) %>
|
||||||
|
<%= link_to l(:label_user_newfeedback), edit_issue_path(@issue.id), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:add_issue_notes, @project) %>
|
||||||
<%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("all_attributes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:edit_issues, @project) %>
|
|
||||||
<%= link_to l(:label_user_newfeedback), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'talk_edit fr', :accesskey => accesskey(:edit) if @issue.editable? && User.current.allowed_to?(:add_issue_notes, @project) %>
|
|
||||||
|
@ -1 +1,3 @@
|
|||||||
$("#issue_list").html("<%= escape_javascript(render :partial => 'issues/list',:locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count})%>");
|
$("#issue_list").html("<%= escape_javascript(render :partial => 'issues/list',:locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count})%>");
|
||||||
|
$("#v_subject").focus();
|
||||||
|
$("#v_subject").blur();
|
@ -1,52 +0,0 @@
|
|||||||
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
||||||
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless @project.issues.count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= @project.issues.count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless @project.boards.first.topics.count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end%>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless attaments_num == 0 %>
|
|
||||||
<a class="subnav_num">(<%= attaments_num %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<%# --版本库被设置成私有、module中设置不显示、没有创建版本库 三种情况不显示-- %>
|
|
||||||
<% if visible_repository?(@project) %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
||||||
<a class="subnav_num">(<%= @project.repositories.count %>)</a>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<!-- more -->
|
|
||||||
<div class="subNav subNav_jiantou" id="expand_tools_expand" nhtype="toggle4cookie" data-id="expand_tool_more" data-target="#navContent" data-val="retract"><%= l(:label_project_more) %></div>
|
|
||||||
<ul class="navContent" id="navContent">
|
|
||||||
<%= render 'projects/tools_expand' %>
|
|
||||||
</ul>
|
|
@ -1,29 +0,0 @@
|
|||||||
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
||||||
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless @project.boards.first.topics.count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end%>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless attaments_num == 0 %>
|
|
||||||
<a class="subnav_num">(<%= attaments_num %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
@ -1,40 +0,0 @@
|
|||||||
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
||||||
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless @project.issues.count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= @project.issues.count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless @project.boards.first.topics.count == 0 %>
|
|
||||||
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end%>
|
|
||||||
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
||||||
<div class="subNav">
|
|
||||||
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
|
||||||
<% unless attaments_num == 0 %>
|
|
||||||
<a class="subnav_num">(<%= attaments_num %>)</a>
|
|
||||||
<% end %>
|
|
||||||
<% if User.current.member_of?(@project) %>
|
|
||||||
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end%>
|
|
@ -1,47 +0,0 @@
|
|||||||
<% @nav_dispaly_project_label = 1
|
|
||||||
@nav_dispaly_forum_label = 1 %>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="<%= current_language %>">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title><%=h html_title %></title>
|
|
||||||
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
||||||
<meta name="keywords" content="issue,bug,tracker" />
|
|
||||||
<%= csrf_meta_tag %>
|
|
||||||
<%= favicon %>
|
|
||||||
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
|
|
||||||
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
||||||
<%= javascript_heads %>
|
|
||||||
<%= javascript_include_tag "jquery.leanModal.min" %>
|
|
||||||
<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable'%>
|
|
||||||
<%= heads_for_theme %>
|
|
||||||
<%= call_hook :view_layouts_base_html_head %>
|
|
||||||
<!-- page specific tags -->
|
|
||||||
<%= yield :header_tags -%>
|
|
||||||
</head>
|
|
||||||
<body class="<%=h body_css_classes %>">
|
|
||||||
<div id="wrapper">
|
|
||||||
<div id="wrapper2">
|
|
||||||
<div id="wrapper3">
|
|
||||||
<%=render :partial => 'layouts/base_header'%>
|
|
||||||
<div id="main" class="nosidebar">
|
|
||||||
<div id="content_">
|
|
||||||
<%= render_flash_messages %>
|
|
||||||
<%= yield %>
|
|
||||||
<%= call_hook :view_layouts_base_content %>
|
|
||||||
<div style="clear:both;"></div>
|
|
||||||
<%=render :partial => 'layouts/base_footer'%>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
|
|
||||||
<div id="ajax-modal" style="display:none;"></div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<%= call_hook :view_layouts_base_body_bottom %>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,4 +1,5 @@
|
|||||||
//ckeditor.setData("<%= raw escape_javascript(@content) %>");
|
//ckeditor.setData("<%= raw escape_javascript(@content) %>");
|
||||||
$('#message_quote').html("<%= raw escape_javascript(@temp.content.html_safe) %>");
|
$('#message_quote').html("<%= raw escape_javascript(@temp.content.html_safe) %>");
|
||||||
$('#quote').val("<%= raw escape_javascript(@content) %>");
|
$('#quote').val("<%= raw escape_javascript(@content) %>");
|
||||||
showAndScrollTo("new_memo", "cke_editor01");
|
showAndScrollTo("new_memo", "cke_editor01");
|
||||||
|
$("img").removeAttr("align");
|
@ -0,0 +1,52 @@
|
|||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
||||||
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% if (issue_count = @project.issues.count) > 0 %>
|
||||||
|
<a class="subnav_num">(<%= issue_count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless @project.boards.first.topics.count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless attaments_num == 0 %>
|
||||||
|
<a class="subnav_num">(<%= attaments_num %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<%# --版本库被设置成私有、module中设置不显示、没有创建版本库 三种情况不显示-- %>
|
||||||
|
<% if visible_repository?(@project) %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
||||||
|
<a class="subnav_num">(<%= @project.repositories.count %>)</a>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<!-- more -->
|
||||||
|
<div class="subNav subNav_jiantou" id="expand_tools_expand" nhtype="toggle4cookie" data-id="expand_tool_more" data-target="#navContent" data-val="retract"><%= l(:label_project_more) %></div>
|
||||||
|
<ul class="navContent" id="navContent">
|
||||||
|
<%= render 'projects/tools_expand' %>
|
||||||
|
</ul>
|
@ -0,0 +1,28 @@
|
|||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
||||||
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless @project.boards.first.topics.count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless attaments_num == 0 %>
|
||||||
|
<a class="subnav_num">(<%= attaments_num %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
@ -0,0 +1,39 @@
|
|||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
||||||
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% if (issue_count = @project.issues.count) > 0 %>
|
||||||
|
<a class="subnav_num">(<%= issue_count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless @project.boards.first.topics.count == 0 %>
|
||||||
|
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
||||||
|
<div class="subNav">
|
||||||
|
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
||||||
|
<% unless attaments_num == 0 %>
|
||||||
|
<a class="subnav_num">(<%= attaments_num %>)</a>
|
||||||
|
<% end %>
|
||||||
|
<% if User.current.member_of?(@project) %>
|
||||||
|
<%= link_to "+"+l(:label_upload_source), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<% end%>
|
@ -0,0 +1,3 @@
|
|||||||
|
if Rails.env.production?
|
||||||
|
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
|
||||||
|
end
|
@ -1,10 +0,0 @@
|
|||||||
# Copy this file to additional_environment.rb and add any statements
|
|
||||||
# that need to be passed to the Rails::Initializer. `config` is
|
|
||||||
# available in this context.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
#
|
|
||||||
# config.log_level = :debug
|
|
||||||
# ...
|
|
||||||
#
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue