diff --git a/app/views/poll/index.html.erb b/app/views/poll/index.html.erb index fc36a8abf..0b49cd92d 100644 --- a/app/views/poll/index.html.erb +++ b/app/views/poll/index.html.erb @@ -10,9 +10,11 @@

所有问卷 - (<%= @polls.count%>) + (<%= @obj_count%>)

- <%= link_to l(:label_new_poll), new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => "newbtn" %> + <% if @is_teacher%> + <%= link_to l(:label_new_poll), new_poll_path(:polls_type => "Course",:polls_group_id => @course.id), :class => "newbtn" %> + <% end%>
diff --git a/public/stylesheets/polls.css b/public/stylesheets/polls.css index 494d9cb60..641d1726d 100644 --- a/public/stylesheets/polls.css +++ b/public/stylesheets/polls.css @@ -31,7 +31,7 @@ ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; } ul.wlist li{float: left;} ul.wlist li a{ border:1px solid #15bccf; padding:4px; margin-left:3px;} ul.wlist li a:hover{ background:#15bccf; color:#fff; text-decoration:none;} -.wlist_select { background-color:#64bdd9; color:#fff; padding:0 5px; margin-left:3px;margin-top: -2px; border:1px solid #64bdd9;} +.wlist_select { background-color:#64bdd9; color:#fff; padding: 1px 5px 0px 5px; margin-left:3px;margin-top: -2px; border:1px solid #64bdd9;} /*问卷页面*/ .polls_box{ border:1px solid #dcdcdc; padding:15px 30px;}