forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start clean content main page
- Loading branch information
Yannick Francois
committed
Oct 7, 2013
1 parent
d4e8caf
commit 09d92ee
Showing
37 changed files
with
132 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<%- article_categories = @article ? @article.categories.map(&:id) : [] -%> | ||
<%- used_categories = @article.categories.map(&:id) %> | ||
<%- Category.all.each do |cat| %> | ||
<%= label_tag"category_#{h(cat.id)}", check_box_tag('categories[]', cat.id, (@article.categories.map(&:id).include? cat.id), :id => "category_#{h(cat.id)}") + h(cat.name), :class => 'checkbox' %> | ||
</li> | ||
</ul> | ||
<% end -%> | ||
<%= link_to _("New Category"), {:controller => 'admin/categories', :action => 'new' }, :class => 'btn btn-info new_category' %> | ||
<%= label_tag do %> | ||
<%= check_box_tag 'categories[]', cat.id, used_categories.include?(cat.id), id: "category_#{cat.id}", class: 'checkbox' %> | ||
<%= cat.name %> | ||
<%- end %> | ||
<%- end %> | ||
<%= link_to t(".new_category"), {controller: 'admin/categories', action: 'new' }, class: 'btn btn-info new_category' %> |
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,9 +1,3 @@ | ||
<%= form_tag({:action => 'update', | ||
:id => @article.id}, | ||
method: :post, | ||
multipart: true, | ||
id: "article_form", | ||
class: 'autosave') do %> | ||
<%= render :partial => "form" %> | ||
<% end %> | ||
<%= form_tag({action: 'update', id: @article.id}, method: :post, multipart: true, id: "article_form", class: 'autosave') do %> | ||
<%= render partial: "form" %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<%= render "admin/shared/edit", { :form_type => "article", :form_action => { :action => "create", :id => @article.id , :class => ('autosave')} } %> | ||
<%= form_tag(action: "create", id: "article_form", multipart: true, class: 'autosave') do %> | ||
<%= render partial: "form" %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
<% className = form_action.delete(:class) %> | ||
<%= form_tag(form_action, :id => "#{form_type}_form", | ||
:enctype => "multipart/form-data", | ||
:class => className) do %> | ||
<%= render :partial => "form" %> | ||
<%= form_tag(form_action, id: "#{form_type}_form", enctype: "multipart/form-data", class: className) do %> | ||
<%= render partial: "form" %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
da: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Kategorier" | ||
|
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,5 +1,8 @@ | ||
de: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
en: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
es-MX: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
fr: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Nouvelle catégorie" | ||
categories: | ||
new: | ||
categories: "Catégories" | ||
|
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,5 +1,8 @@ | ||
he-IL: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "קטגוריות" | ||
|
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,5 +1,8 @@ | ||
it: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
ja: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "カテゴリ" | ||
|
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,5 +1,8 @@ | ||
lt: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
nb-NO: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Ny kategori" | ||
categories: | ||
new: | ||
categories: "Kategorier" | ||
|
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,5 +1,8 @@ | ||
nl: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Nieuwe categorie" | ||
categories: | ||
new: | ||
categories: "Categoriën" | ||
|
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,5 +1,8 @@ | ||
pl: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Utwórz nową kategorię" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
pt-BR: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Nova Categoria" | ||
categories: | ||
new: | ||
categories: "Categorias" | ||
|
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,5 +1,8 @@ | ||
ro: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "Categories" | ||
|
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,5 +1,8 @@ | ||
ru: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "Новая категория" | ||
categories: | ||
new: | ||
categories: "Категории" | ||
|
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,5 +1,8 @@ | ||
zh-CN: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "创建分类" | ||
categories: | ||
new: | ||
categories: "分类" | ||
|
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,5 +1,8 @@ | ||
zh-TW: | ||
admin: | ||
content: | ||
categories: | ||
new_category: "New Category" | ||
categories: | ||
new: | ||
categories: "分類" | ||
|
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
Oops, something went wrong.