This repository has been archived by the owner on May 9, 2022. It is now read-only.
forked from mghaught/savage-beast
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tagging support via Acts as Taggable On.
Misc view tweaks.
- Loading branch information
Showing
15 changed files
with
118 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
<p> | ||
<label for="topic_title"><%= 'Title'[:title_title] %></label><br /> | ||
<%= form.text_field :title, :onchange => "/*TopicForm.editNewTitle(this);*/", :class => "primary", :tabindex => 10 %> | ||
<label for="topic_title"><%= 'Title'[:title_title] %></label><br /> | ||
<%= form.text_field :title, :onchange => "/*TopicForm.editNewTitle(this);*/", :class => "primary", :tabindex => 10 %> | ||
<% if admin? or current_user.moderator_of?(@topic.forum) %> | ||
<label style="margin-left:1em;"> | ||
<%= form.check_box :sticky %> <%= 'Sticky'[:sticky_title] %> | ||
</label> | ||
|
||
<label style="margin-left:1em;"> | ||
<%= form.check_box :locked %> <%= 'Locked'[:locked_title] %> | ||
</label> | ||
|
||
<% end %> | ||
<% if admin? or current_user.moderator_of?(@topic.forum) %> | ||
<label style="margin-left:1em;"> | ||
<%= form.check_box :sticky %> <%= 'Sticky'[:sticky_title] %> | ||
</label> | ||
|
||
<label style="margin-left:1em;"> | ||
<%= form.check_box :locked %> <%= 'Locked'[:locked_title] %> | ||
</label> | ||
<% end %> | ||
</p> | ||
|
||
<% if @topic.new_record? %> | ||
<p> | ||
<label for="topic_body"><%= 'Body'[:body_title] %></label><br /> | ||
<%= form.text_area :body, :rows => 12, :tabindex => 20 %></p> | ||
<p> | ||
<label for="topic_body"><%= 'Body'[:body_title] %></label><br /> | ||
<%= form.text_area :body, :rows => 12, :tabindex => 20 %> | ||
</p> | ||
|
||
<p> | ||
<label for='topic_post_tags'>Tags</label><br /> | ||
<%= form.text_field :body_list, :tabindex => 30 %> | ||
</p> | ||
<% end %> | ||
<% if admin? and not @topic.new_record? %> | ||
<p id="topic_forum_id"> | ||
<label for="topic_forum_id"><%= 'Forum'[:forum_title] %></label><br /> | ||
<%= form.select :forum_id, Forum.find(:all, :order => "position").map {|x| [x.name, x.id] } %></p> | ||
</p> | ||
<% end %> | ||
<p id="topic_forum_id"> | ||
<label for="topic_forum_id"><%= 'Forum'[:forum_title] %></label><br /> | ||
<%= form.select :forum_id, Forum.find(:all, :order => "position").map {|x| [x.name, x.id] } %></p> | ||
</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters