commit
273b360b51
@ -1,15 +1,24 @@
|
|||||||
<div class="pr_info_join fl">
|
<div class="pr_info_join fl">
|
||||||
<!--关注项目-->
|
<!--关注:非项目成员-->
|
||||||
<% if ( !(User.current.member_of? @project) && User.current.login?) %> <!--added by linchun-->
|
<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %>
|
||||||
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
<span><%= watcher_link_for_project(@project, User.current) %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--加入项目 -->
|
<!--加入项目 -->
|
||||||
<% if ( !(User.current.member_of? @project) && User.current.login?) %>
|
<% if !User.current.member_of?(@project) && User.current.login? && !User.current.admin %>
|
||||||
<%= join_in_project_link(@project, User.current) %>
|
<%= join_in_project_link(@project, User.current) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!--退出项目-->
|
<!--配置项目-->
|
||||||
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
<% if User.current.admin? || User.current.allowed_to?({:controller => 'projects', :action => 'settings'}, @project) %>
|
||||||
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
|
<%= link_to "<span class='pr_setting'></span>#{l(:button_configure)}".html_safe, settings_project_path(@project), :class => "pr_join_a" %>
|
||||||
|
<% end %>
|
||||||
|
<!--项目类型-->
|
||||||
|
<% if (User.current.login? && User.current.member_of?(@project) && Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.first.to_s.include?("Manager")) || User.current.admin? %>
|
||||||
<%= link_to "<span class='#{typeclass}'></span>#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
|
<%= link_to "<span class='#{typeclass}'></span>#{text}".html_safe,"javascript:void(0)" ,:onClick => "show_window();", :class => "pr_join_a",:id => "setting_project_type"%>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<!--退出项目-->
|
||||||
|
<% if (User.current.member_of? @project) && User.current.login? &&
|
||||||
|
Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.first.to_s != "Manager" %>
|
||||||
|
<%= exit_project_link(@project) %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,15 @@
|
|||||||
|
KindEditor.plugin('less', function(K) {
|
||||||
|
var self = this, name = 'less';
|
||||||
|
self.plugin.less = {
|
||||||
|
click : function(){
|
||||||
|
if($("#define").css('display') == 'block'){
|
||||||
|
$("#define").css('display','none')
|
||||||
|
$("#full").css('display','block')
|
||||||
|
}else if($("#full").css('display') == 'block'){
|
||||||
|
$("#full").css('display','none')
|
||||||
|
$("#define").css('display','block')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.clickToolbar(name,self.plugin.less.click)
|
||||||
|
});
|
@ -0,0 +1,15 @@
|
|||||||
|
KindEditor.plugin('more', function(K) {
|
||||||
|
var self = this, name = 'more';
|
||||||
|
self.plugin.more = {
|
||||||
|
click : function(){
|
||||||
|
if($("#define").css('display') == 'block'){
|
||||||
|
$("#define").css('display','none')
|
||||||
|
$("#full").css('display','block')
|
||||||
|
}else if($("#full").css('display') == 'block'){
|
||||||
|
$("#full").css('display','none')
|
||||||
|
$("#define").css('display','block')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.clickToolbar(name,self.plugin.more.click)
|
||||||
|
});
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue