temp用户,铃铛消息报500,并修改点击名称进个人主页(目前申请类消息点击进自己主页)
This commit is contained in:
parent
b1983d61c5
commit
c31287f2f5
|
@ -2,6 +2,6 @@
|
||||||
<% if ma.status != 0 %>
|
<% if ma.status != 0 %>
|
||||||
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%=link_to User.where("id=?", ma.applied_user_id).first.show_name, user_path(ma.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
<%=link_to User.where("id=?", ma.applied_user_id).first.show_name, user_path(ma.applied_user_id), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>"><%= applied_school_tip(ma) %></span>
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl" : "homepageNewsType fl" %>"><%= applied_school_tip(ma) %></span>
|
|
@ -1,8 +1,15 @@
|
||||||
<% if ma.class == CourseMessage %>
|
<% if ma.class == CourseMessage %>
|
||||||
<% if ma.course_message_type == "News" && ma.course_message %>
|
<% if ma.course_message_type == "News" && ma.course_message %>
|
||||||
<ul class="homepageNewsList fl">
|
<ul class="homepageNewsList fl">
|
||||||
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(ma.course_message.author), :width => "30", :height => "30"),user_path(ma.course_message.author), :target => '_blank' %></a></li>
|
<li class="homepageNewsPortrait fl">
|
||||||
<li class="homepageNewsPubType fl"><%=link_to ma.course_message.author, user_path(ma.course_message.author), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %><span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">发布了通知:</span></li>
|
<a href="javascript:void(0);">
|
||||||
|
<%=link_to image_tag(url_to_avatar(ma.course_message.author), :width => "30", :height => "30"),user_path(ma.course_message.author), :target => '_blank' %>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="homepageNewsPubType fl">
|
||||||
|
<%=link_to ma.course_message.author, user_path(ma.course_message.author), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
||||||
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">发布了通知:</span>
|
||||||
|
</li>
|
||||||
<li class="homepageNewsContent fl">
|
<li class="homepageNewsContent fl">
|
||||||
<%= link_to ma.course_message.title, {:controller => 'news', :action => 'show', :id => ma.course_message.id },
|
<%= link_to ma.course_message.title, {:controller => 'news', :action => 'show', :id => ma.course_message.id },
|
||||||
:class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
|
:class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
|
||||||
|
|
|
@ -87,3 +87,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
class DeleteTempErrorMessage < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
Organization.where(:id => 68).update_all(:name => "blankname")
|
||||||
|
MessageAll.where(:message_id => 171).destroy_all
|
||||||
|
OrgMessage.where(:id => 171).destroy_all
|
||||||
|
MessageAll.where(:message_id => 16).destroy_all
|
||||||
|
OrgMessage.where(:id => 16).destroy_all
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
32
db/schema.rb
32
db/schema.rb
|
@ -996,6 +996,19 @@ ActiveRecord::Schema.define(:version => 20161117060138) do
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
create_table "ii", :force => true do |t|
|
||||||
|
t.integer "project_id"
|
||||||
|
t.string "author_login"
|
||||||
|
t.string "rep_identifier"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
t.integer "sonar_version", :default => 0
|
||||||
|
t.string "path"
|
||||||
|
t.string "branch"
|
||||||
|
t.string "language"
|
||||||
|
t.string "sonar_name"
|
||||||
|
end
|
||||||
|
|
||||||
create_table "innodb_monitor", :id => false, :force => true do |t|
|
create_table "innodb_monitor", :id => false, :force => true do |t|
|
||||||
t.integer "a"
|
t.integer "a"
|
||||||
end
|
end
|
||||||
|
@ -1587,6 +1600,7 @@ ActiveRecord::Schema.define(:version => 20161117060138) do
|
||||||
t.boolean "hidden_repo", :default => false, :null => false
|
t.boolean "hidden_repo", :default => false, :null => false
|
||||||
t.integer "attachmenttype", :default => 1
|
t.integer "attachmenttype", :default => 1
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
|
t.integer "dts_test", :default => 0
|
||||||
t.string "enterprise_name"
|
t.string "enterprise_name"
|
||||||
t.integer "organization_id"
|
t.integer "organization_id"
|
||||||
t.integer "project_new_type"
|
t.integer "project_new_type"
|
||||||
|
@ -1594,11 +1608,6 @@ ActiveRecord::Schema.define(:version => 20161117060138) do
|
||||||
t.integer "forked_from_project_id"
|
t.integer "forked_from_project_id"
|
||||||
t.integer "forked_count"
|
t.integer "forked_count"
|
||||||
t.integer "publish_resource", :default => 0
|
t.integer "publish_resource", :default => 0
|
||||||
t.integer "boards_count", :default => 0
|
|
||||||
t.integer "news_count", :default => 0
|
|
||||||
t.integer "acts_count", :default => 0
|
|
||||||
t.integer "journals_count", :default => 0
|
|
||||||
t.integer "boards_reply_count", :default => 0
|
|
||||||
t.integer "visits", :default => 0
|
t.integer "visits", :default => 0
|
||||||
t.integer "hot", :default => 0
|
t.integer "hot", :default => 0
|
||||||
t.string "invite_code"
|
t.string "invite_code"
|
||||||
|
@ -1625,19 +1634,6 @@ ActiveRecord::Schema.define(:version => 20161117060138) do
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "quality_analyses", :force => true do |t|
|
|
||||||
t.integer "project_id"
|
|
||||||
t.string "author_login"
|
|
||||||
t.string "rep_identifier"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
t.integer "sonar_version", :default => 0
|
|
||||||
t.string "path"
|
|
||||||
t.string "branch"
|
|
||||||
t.string "language"
|
|
||||||
t.string "sonar_name"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "queries", :force => true do |t|
|
create_table "queries", :force => true do |t|
|
||||||
t.integer "project_id"
|
t.integer "project_id"
|
||||||
t.string "name", :default => "", :null => false
|
t.string "name", :default => "", :null => false
|
||||||
|
|
Loading…
Reference in New Issue