correct view permission of conference
This commit is contained in:
parent
4ac0f19011
commit
c55f64f3c6
|
@ -1,7 +1,7 @@
|
||||||
class Panel::PersonalConference::Desktop::ConferencePagesController < ApplicationController
|
class Panel::PersonalConference::Desktop::ConferencePagesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@view_by = params[:view]
|
@view_by = params[:view]
|
||||||
@writing_conferences = WritingConference.all
|
@writing_conferences = WritingConference.where(create_user_id: current_user.id)
|
||||||
|
|
||||||
if @view_by.nil?
|
if @view_by.nil?
|
||||||
@writing_conferences = @writing_conferences.asc(:paper_title)
|
@writing_conferences = @writing_conferences.asc(:paper_title)
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
<%= select_year((@writing_conference.year ? @writing_conference.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_conference[year]', :class => "s_grid_4 s_grid"} ) %>
|
<%= select_year((@writing_conference.year ? @writing_conference.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_conference[year]', :class => "s_grid_4 s_grid"} ) %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="s_grid_row"><input class="s_grid s_grid_6" type="text" placeholder=<%= t("tags") %>><span class="icon-plus input_append"></li>
|
<li class="s_grid_row"><input class="s_grid s_grid_6" type="text" placeholder=<%= t("personal_conference.tags") %>><span class="icon-plus input_append"></li>
|
||||||
|
|
||||||
<li class="s_grid_row">
|
<li class="s_grid_row">
|
||||||
<%= f.text_area :abstract, size: "20x22", placeholder: t("personal_conference.abstract"), class: "s_grid_6 s_grid full_height"%>
|
<%= f.text_area :abstract, size: "20x22", placeholder: t("personal_conference.abstract"), class: "s_grid_6 s_grid full_height"%>
|
||||||
|
|
Loading…
Reference in New Issue