Archived
removed passing of useless params, updated placeholder for user textcomplete
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div class="field_container_user">
|
<div class="field_container_user">
|
||||||
<% options = (defined?(options) && options || {}) %>
|
<% options = (defined?(options) && options || {}) %>
|
||||||
<% options[:class] = "#{options[:class]} editor_field" %>
|
<% options[:class] = "#{options[:class]} editor_field" %>
|
||||||
<% options[:placeholder] ||= "Enter user's name. Prefix with \"@\" to get suggestions." %>
|
<% options[:placeholder] ||= "Enter user's name." %>
|
||||||
<%= text_field_tag name, content, options %>
|
<%= text_field_tag name, content, options %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<% title "Forums" %>
|
<% title "Forums" %>
|
||||||
|
|
||||||
<%= link_to "All threads", forumthreads_path(params.except("controller", "action")), class: "btn blue right" %>
|
<%= link_to "All threads", forumthreads_path, class: "btn blue right" %>
|
||||||
|
|
||||||
<div id="forum_groups">
|
<div id="forum_groups">
|
||||||
<% @groups.each do |group| %>
|
<% @groups.each do |group| %>
|
||||||
|
|||||||
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
<%= title @forum %>
|
<%= title @forum %>
|
||||||
<% params[:id] = params[:id].split("-")[0] %>
|
<% params[:id] = @forum.id %>
|
||||||
<%= link_to "Search Threads", forumthreads_path(params.except("action", "controller")), class: "btn blue right" %>
|
<%= link_to "Search Threads", forumthreads_path(params.to_hash), class: "btn blue right" %>
|
||||||
</h1>
|
</h1>
|
||||||
<% if @forum.can_write?(current_user) %>
|
<% if @forum.can_write?(current_user) %>
|
||||||
<p>
|
<p>
|
||||||
<%= link_to "New thread", new_forumthread_path(forum: @forum), class: "btn blue" %>
|
<%= link_to "New thread", new_forumthread_path(forum: @forum), class: "btn blue" %>
|
||||||
<% params[:id] = params[:id].split("-")[0] %>
|
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user