Update plugin intro

This commit is contained in:
manson 2014-07-01 18:28:54 +08:00
parent 49cef0ab7a
commit a396a97407
3 changed files with 3 additions and 17 deletions

View File

@ -1,6 +0,0 @@
class WritingConferencesController
def show
writing_conference = WritingConference.find_by(:uid=>param[:uid])
end
end

View File

@ -1,10 +1,2 @@
class WritingConferenceIntro class WritingConferenceIntro < PersonalPluginIntro
include Mongoid::Document
include Mongoid::Timestamps
belongs_to :member_profile
field :text, localize: true
field :display_intro, :type => Boolean, :default => true
field :display_conference_list, :type => Boolean, :default => true
end end

View File

@ -34,8 +34,8 @@
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= t("personal_plugins.frontend_page") %></label> <label class="control-label muted"><%= t("personal_plugins.frontend_page") %></label>
<div class="controls"> <div class="controls">
<%= f.check_box :display_intro, :checked => @intro.display_intro %> <%= t("personal_plugins.brief_intro") %> <%= f.check_box :brief_intro, :checked => @intro.brief_intro %> <%= t("personal_plugins.brief_intro") %>
<%= f.check_box :display_conference_list, :checked => @intro.display_conference_list %> <%= t("personal_plugins.complete_list") %> <%= f.check_box :complete_list, :checked => @intro.complete_list %> <%= t("personal_plugins.complete_list") %>
</div> </div>
</div> </div>
</div> </div>