个人主页样式调整
This commit is contained in:
parent
2aed879c95
commit
d040c95305
|
|
@ -47,7 +47,7 @@ class SyllabusesController < ApplicationController
|
|||
member = SyllabusMember.create(:user_id => @syllabus.user_id, :rank => 1)
|
||||
@syllabus.syllabus_members << member
|
||||
respond_to do |format|
|
||||
flash[:notice] = l(:notice_successful_create)
|
||||
#flash[:notice] = l(:notice_successful_create)
|
||||
format.html {redirect_to syllabus_path(@syllabus)}
|
||||
format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'syllabuses', :action => 'show', :id => @syllabus.id) }
|
||||
end
|
||||
|
|
|
|||
|
|
@ -275,10 +275,10 @@ module WatchersHelper
|
|||
title = watched ? '取消关注' : '添加关注'
|
||||
if target != user
|
||||
link_to text, url, :remote => true, :method => method, :remote => true,
|
||||
:class => "fl font-14 user_watch",:id => id, :title => title
|
||||
:class => "fr font-14 user_watch",:id => id, :title => title
|
||||
else
|
||||
link_to "关注", "javascript:void(0)", :remote => true, :method => method,
|
||||
:class => "fl font-14 user_watch", :id => id, :title => title
|
||||
:class => "fr font-14 user_watch", :id => id, :title => title
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue