实训项目的资源库加上开源检索跳到oscean
This commit is contained in:
parent
60445fcb3f
commit
ad05f75f03
|
@ -39,6 +39,10 @@
|
|||
$('#insite').attr("class", "re_schbtn b_lblue");
|
||||
}
|
||||
|
||||
function os_search(){
|
||||
window.open("http://ossean.trustie.net/open_source_projects/search?utf8=✓&name="+$("#name").val());
|
||||
}
|
||||
|
||||
function project_files_upload()
|
||||
{
|
||||
var htmlvalue = '<%= escape_javascript(render :partial => 'files/upload_project_files',:locals => {:project => @project,:project_attachment_type => 1}) %>';
|
||||
|
@ -76,6 +80,9 @@
|
|||
<%= form_tag( search_project_project_files_path(@project), method: 'get',:class => "re_search",:remote=>true) do %>
|
||||
<%= text_field_tag 'name', params[:name], name: "name", :class => 're_schbox',:style=>"padding: 0px"%>
|
||||
<%= submit_tag "项目内搜索", :class => "re_schbtn b_lblue",:name => "incourse",:id => "incourse", :onmouseover => "presscss('incourse')",:onmouseout =>"buttoncss()", :style =>"width:72px;" %>
|
||||
<% if @project.try(:id) == 2765 %>
|
||||
<a class="blue-btn ml5" href="javascript:void(0);" onclick="os_search()">开源检索</a>
|
||||
<% end %>
|
||||
<%#= submit_tag "全站搜索", :class => "re_schbtn b_lblue",:name => "insite",:id => "insite",:onmouseover => "presscss('insite')",:onmouseout =>"buttoncss()" %>
|
||||
<!--REDO: 权限测试-->
|
||||
<% if User.current.member_of?(@project) %>
|
||||
|
|
Loading…
Reference in New Issue