Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
135 changed files
with
1,801 additions
and
1,665 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
%tr | ||
%td.icon | ||
= link_to theme_image_tag("edit.jpg"), edit_admin_category_path(category) | ||
= link_to theme_image_tag("delete.jpg"), admin_category_path(category), :method => "delete", :confirm => t(:confirm_category_deletion) | ||
%td{ :style => "text-align:left !important" } | ||
= theme_image_tag("extender.jpg", :style => "padding-left:#{depth*20}px") if extender | ||
= link_to category.name, admin_category_path(category) | ||
%td | ||
= link_to(pluralize(category.forums.count, "forum"), admin_category_path(category)) | ||
%td | ||
- unless category.first? | ||
= link_to theme_image_tag("top.jpg"), move_to_top_admin_category_path(category), :method => :put | ||
= link_to theme_image_tag("up.jpg"), move_up_admin_category_path(category), :method => :put | ||
= category.position | ||
- unless category.last? | ||
= link_to theme_image_tag("down.jpg"), move_down_admin_category_path(category), :method => :put | ||
= link_to theme_image_tag("bottom.jpg"), move_to_bottom_admin_category_path(category), :method => :put | ||
= render :partial => category.children.sort_by(&:position), :locals => { :extender => true, :depth => depth+1 } |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%tbody | ||
%tr | ||
%td | ||
= f.label "name" | ||
%td | ||
= f.text_field "name" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= link_to t(:admin_section), admin_root_path | ||
\-> | ||
= link_to(t(:Categories), admin_categories_path) | ||
\-> | ||
= t(:Editing_a_category) | ||
\: | ||
= @category.name | ||
= error_messages_for :category | ||
- form_for [:admin, @category] do |f| | ||
%table.action-box{ :cellspacing => "0", :cellpadding => "2", :width => "100%" } | ||
%thead | ||
%tr | ||
%td{ :colspan => "2" } | ||
%h2 | ||
= t(:Editing_a_category) | ||
\: | ||
= @category.name | ||
= render :partial => "form", :locals => { :f => f } | ||
%tfoot | ||
%tr | ||
%td{ :colspan => "2" } | ||
= f.submit t(:Update) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
= link_to t(:admin_section), admin_root_path | ||
\-> | ||
= t(:Categories) | ||
%h2 | ||
= t(:Categories) | ||
= link_to t(:New_Category), new_admin_category_path | ||
%table.list-table{ :cellspacing => "0", :rules => "groups", :cellpadding => "3", :width => "100%" } | ||
- unless @categories.empty? | ||
%thead | ||
%tr | ||
%td | ||
\ | ||
%td | ||
= t(:Name) | ||
%td | ||
= t(:Forums) | ||
%td | ||
= t(:Position) | ||
%tbody | ||
= render :partial => @categories, :locals => { :depth => 0, :extender => false } | ||
- else | ||
%thead | ||
%tr | ||
%td{ :align => "center", :colspan => "3" } | ||
= t(:no_categories) | ||
= link_to t(:user_should_create), new_admin_category_path |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
= link_to t(:admin_section), admin_root_path | ||
\-> | ||
= link_to(t(:Categories), admin_categories_path) | ||
\-> | ||
= t(:Creating_a_category) | ||
= error_messages_for :category | ||
- form_for [:admin, @category] do |f| | ||
%table.action-box{ :cellspacing => "0", :cellpadding => "2", :width => "100%" } | ||
%thead | ||
%tr | ||
%td{ :colspan => "2" } | ||
%h2 | ||
= t(:Creating_a_category) | ||
= render :partial => "form", :locals => { :f => f } | ||
%tfoot | ||
%tr | ||
%td{ :colspan => "2" } | ||
= f.submit t(:Create) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%h2 | ||
= t(:Forums) | ||
= t(:for) | ||
= @category.name | ||
= link_to t(:New_Forum), new_admin_category_forum_path(@category) | ||
= render :partial => "admin/forums/forums" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
%tbody | ||
%tr | ||
%td= f.label :title, t(:Title) | ||
%td= f.text_field "title" | ||
%tr | ||
%td{ :valign => "top" }= f.label :description, t(:Description) | ||
%td= f.text_area "description", :cols => 40, :rows => 5 | ||
%tr | ||
%td= f.label :is_visible_to_id, t(:Is_visible_to) | ||
%td= f.select "is_visible_to_id", @user_levels.map { |u| [u.name, u.id] } | ||
%tr | ||
%td | ||
= f.label :topics_created_by_id, t(:Topics_created_by) | ||
%td | ||
= f.select "topics_created_by_id", @user_levels.map { |u| [u.name, u.id] } | ||
- unless @forums.empty? | ||
%tr | ||
%td | ||
= f.label :parent_id, t(:Child_of) | ||
%td | ||
= f.select "parent_id", @forums.map { |forum| [select_display(forum),forum.id] }, :include_blank => true | ||
- unless @category | ||
%tr | ||
%td | ||
= f.label :category_id, t(:Category) | ||
%td | ||
= f.select "category_id", @categories.map { |category| [select_display(category, 'name'), category.id] }, :include_blank => true |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
%tr | ||
%td.icon | ||
= link_to theme_image_tag("edit.jpg"), edit_admin_forum_path(forum) | ||
= link_to theme_image_tag("delete.jpg"), admin_forum_path(forum), :method => "delete", :confirm => t(:confirm_forum_deletion) | ||
%td{ :style => "text-align:left !important" } | ||
= theme_image_tag("extender.jpg", :style => "padding-left:#{depth*20}px") if extender | ||
= link_to forum.title, forum_path(forum) | ||
%td | ||
= forum.is_visible_to | ||
%td | ||
= forum.topics_created_by | ||
%td | ||
= forum.topics.size | ||
%td | ||
= forum.posts.size | ||
%td | ||
- unless forum.first? | ||
= link_to theme_image_tag("top.jpg"), move_to_top_admin_forum_path(forum), :method => :put | ||
= link_to theme_image_tag("up.jpg"), move_up_admin_forum_path(forum), :method => :put | ||
= forum.position | ||
- unless forum.last? | ||
= link_to theme_image_tag("down.jpg"), move_down_admin_forum_path(forum), :method => :put | ||
= link_to theme_image_tag("bottom.jpg"), move_to_bottom_admin_forum_path(forum), :method => :put | ||
= render :partial => forum.children.sort_by(&:position), :locals => { :extender => true, :depth => depth+1 } |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
%table.list-table{ :cellspacing => "0", :rules => "groups", :cellpadding => "3", :width => "100%" } | ||
- unless @forums.empty? | ||
%thead | ||
%tr | ||
%td | ||
%td= t(:Title) | ||
%td= t(:Is_visible_to) | ||
%td= t(:Creator) | ||
%td= t(:Topics) | ||
%td= t(:Posts) | ||
%td= t(:Position) | ||
%tbody | ||
= render :partial => "admin/forums/forum", :collection => @forums, :locals => { :depth => 0, :extender => false } | ||
- else | ||
%thead | ||
%tr | ||
%td{ :align => "center", :colspan => "3" } | ||
= t(:no_forums) | ||
= link_to t(:user_should_create), @category.nil? ? new_admin_forum_path : new_admin_category_forum_path(@category) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= link_to t(:admin_section), admin_root_path | ||
\-> | ||
= link_to(t(:Forums), admin_forums_path) | ||
\-> | ||
= t(:Editing_a_forum) | ||
\: | ||
= @forum.title | ||
= error_messages_for :forum | ||
- form_for [:admin, @forum] do |f| | ||
%table.action-box{ :cellspacing => "0", :cellpadding => "2", :width => "100%" } | ||
%thead | ||
%tr | ||
%td{ :colspan => "2" } | ||
%h2 | ||
= t(:Editing_a_forum) | ||
\: | ||
= @forum.title | ||
= render :partial => "form", :locals => { :f => f } | ||
%tfoot | ||
%tr | ||
%td{ :colspan => "2" } | ||
= submit_tag(t(:Update)) |
Oops, something went wrong.