Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1225 from ariana-paris/Issue_3197-User_skin_UI
Issue 3197 user skin ui
- Loading branch information
Showing
13 changed files
with
205 additions
and
121 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,10 +1,11 @@ | ||
<% index ||= 1 %> | ||
<li class="removeme"> | ||
<fieldset> | ||
<p><span class="actions cancel" title="cancel"><%= link_to_remove_section ts("x"), form %></span> | ||
<%= ts("Parent #") %><%= form.text_field :position, :class => "number", :value => (form.object.position || index), :title => "position of parent as integer" %> | ||
</p> | ||
<%= form.text_field :parent_skin_title, autocomplete_options("site_skins", :autocomplete_token_limit => 1, :title => "title of parent skin") %> | ||
</fieldset> | ||
<fieldset> | ||
<p> | ||
<span class="actions cancel" title="<%= ts('cancel')%>"><%= link_to_remove_section ts('x'), form %></span> | ||
<%= ts('Parent #') %><%= form.text_field :position, :class => 'number', :value => (form.object.position || index), :title => ts('position of parent as integer') %> | ||
</p> | ||
<%= form.text_field :parent_skin_title, autocomplete_options('site_skins', :autocomplete_token_limit => 1, :title => ts('title of parent skin')) %> | ||
</fieldset> | ||
</li> | ||
<li class="last_id" style="display:none;"><%= index.is_a?(String) ? index : index+1 %></li> | ||
<li class="last_id" style="display:none;"><%= index.is_a?(String) ? index : index + 1 %></li> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!--subnav--> | ||
<h3 class="landmark heading"><%= ts('Skin Type Navigation') %></h3> | ||
|
||
<ul class="navigation actions" role="navigation"> | ||
<% if logged_in? %> | ||
<li> | ||
<%= span_if_current ts('My Site Skins'), user_skins_path(current_user, :skin_type => 'Site'), current_page?(user_skins_path(current_user)) && (params[:skin_type].blank? || params[:skin_type] == 'Site') %> | ||
</li> | ||
<li> | ||
<%= span_if_current ts('My Work Skins'), user_skins_path(current_user, :skin_type => 'WorkSkin') %> | ||
</li> | ||
<% end %> | ||
<% unless action_name == 'new' %> | ||
<li> | ||
<%= span_if_current ts('Public Site Skins'), skins_path(:skin_type => 'Site'), current_page?(skins_path) && (params[:skin_type].blank? || params[:skin_type] == 'Site') %> | ||
</li> | ||
<li> | ||
<%= span_if_current ts('Public Work Skins'), skins_path(:skin_type => 'WorkSkin') %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
|
||
|
||
<!--/subnav--> |
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
Oops, something went wrong.