Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/radiant/radiant into rails_…
…2_1_0
- Loading branch information
Showing
10 changed files
with
289 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
%h1 Layouts | ||
|
||
%p | ||
Use layouts to apply a visual look to a Web page. Layouts can contain special tags to include | ||
page content and other elements such as the header or footer. Click on a layout name below to | ||
edit it or click <code>Remove</code> to delete it. | ||
- render_region :top do |top| | ||
- top.help_text do | ||
%p | ||
Use layouts to apply a visual look to a Web page. Layouts can contain special tags to include | ||
page content and other elements such as the header or footer. Click on a layout name below to | ||
edit it or click <code>Remove</code> to delete it. | ||
|
||
%table#layouts.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0" } | ||
%thead | ||
%tr | ||
%th.layout | ||
Layout | ||
%th.modify | ||
Modify | ||
- render_region :thead do |thead| | ||
- thead.title_header do | ||
%th.layout | ||
Layout | ||
- thead.modify_header do | ||
%th.modify | ||
Modify | ||
%tbody | ||
- @layouts.each do |layout| | ||
%tr.node.level-1 | ||
%td.layout | ||
= image('layout', :alt => 'layout-icon') | ||
= link_to layout.name, layout_edit_url(:id => layout) | ||
%td.remove | ||
= link_to image('remove', :alt => 'Remove Layout'), layout_remove_url(:id => layout) | ||
- render_region :tbody do |tbody| | ||
- tbody.title_cell do | ||
%td.layout | ||
= image('layout', :alt => 'layout-icon') | ||
= link_to layout.name, layout_edit_url(:id => layout) | ||
- tbody.modify_cell do | ||
%td.remove | ||
= link_to image('remove', :alt => 'Remove Layout'), layout_remove_url(:id => layout) | ||
|
||
%p | ||
= link_to image('new-layout', :alt => "New Layout"), layout_new_url | ||
- render_region :bottom do |bottom| | ||
- bottom.new_button do | ||
%p | ||
= link_to image('new-layout', :alt => "New Layout"), layout_new_url |
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,20 +1,30 @@ | ||
%h1 Snippets | ||
|
||
%p Snippets are generally small pieces of content which are included in other pages or layouts. | ||
- render_region :top do |top| | ||
- top.help_text do | ||
%p Snippets are generally small pieces of content which are included in other pages or layouts. | ||
|
||
%table#snippets.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"} | ||
%thead | ||
%tr | ||
%th.snippet Snippet | ||
%th.modify Modify | ||
- render_region :thead do |thead| | ||
- thead.title_header do | ||
%th.snippet Snippet | ||
- thead.modify_header do | ||
%th.modify Modify | ||
%tbody | ||
- @snippets.each do |snippet| | ||
%tr.node.level-1 | ||
%td.snippet | ||
= image('snippet', :alt => 'snippet-icon') | ||
%span= link_to snippet.name, snippet_edit_url(:id => snippet) | ||
%td.remove | ||
= link_to image('remove', :alt => 'Remove Snippet'), snippet_remove_url(:id => snippet) | ||
- render_region :tbody do |tbody| | ||
- tbody.title_cell do | ||
%td.snippet | ||
= image('snippet', :alt => 'snippet-icon') | ||
%span= link_to snippet.name, snippet_edit_url(:id => snippet) | ||
- tbody.modify_cell do | ||
%td.remove | ||
= link_to image('remove', :alt => 'Remove Snippet'), snippet_remove_url(:id => snippet) | ||
|
||
%p | ||
= link_to image('new-snippet', :alt => 'New Snippet'), snippet_new_url | ||
- render_region :bottom do |bottom| | ||
- bottom.new_button do | ||
%p | ||
= link_to image('new-snippet', :alt => 'New Snippet'), snippet_new_url |
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,23 +1,35 @@ | ||
%h1 Users | ||
|
||
= render_region :top | ||
|
||
%table#users.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"} | ||
%thead | ||
%tr | ||
%th.user Name / Login | ||
%th.roles Roles | ||
%th.modify Modify | ||
- render_region :thead do |thead| | ||
- thead.title_header do | ||
%th.user Name / Login | ||
- thead.roles_header do | ||
%th.roles Roles | ||
- thead.modify_header do | ||
%th.modify Modify | ||
%tbody | ||
- @users.each do |user| | ||
%tr.node.level-1 | ||
%td.user | ||
= link_to user.name, user_edit_url(:id => user) | ||
%small.login= h user.login | ||
%td.roles= roles(user) | ||
%td.remove | ||
- if user == current_user | ||
= image('remove-disabled', :alt => 'Remove') | ||
- else | ||
= link_to(image('remove', :alt => 'Remove User'), user_remove_url(:id => user)) | ||
- render_region :tbody do |tbody| | ||
- tbody.title_cell do | ||
%td.user | ||
= link_to user.name, user_edit_url(:id => user) | ||
%small.login= h user.login | ||
- tbody.roles_cell do | ||
%td.roles= roles(user) | ||
- tbody.modify_cell do | ||
%td.remove | ||
- if user == current_user | ||
= image('remove-disabled', :alt => 'Remove') | ||
- else | ||
= link_to(image('remove', :alt => 'Remove User'), user_remove_url(:id => user)) | ||
|
||
%p | ||
= link_to image('new-user', :alt => 'New User'), user_new_url, :title => "New User" | ||
- render_region :bottom do |bottom| | ||
- bottom.new_button do | ||
%p | ||
= link_to image('new-user', :alt => 'New User'), user_new_url, :title => "New User" |
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.