个人主页样式调整

This commit is contained in:
cxt 2017-05-02 09:10:35 +08:00
parent 2aed879c95
commit d040c95305
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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