diff --git a/app/controllers/my_profile/themes_controller.rb b/app/controllers/my_profile/themes_controller.rb new file mode 100644 index 0000000..52ee04e --- /dev/null +++ b/app/controllers/my_profile/themes_controller.rb @@ -0,0 +1,3 @@ +class ThemesController < ApplicationController + no_design_blocks +end diff --git a/app/helpers/themes_helper.rb b/app/helpers/themes_helper.rb new file mode 100644 index 0000000..f2b46ce --- /dev/null +++ b/app/helpers/themes_helper.rb @@ -0,0 +1,2 @@ +module ThemesHelper +end diff --git a/app/views/profile_editor/index.rhtml b/app/views/profile_editor/index.rhtml index 85487d6..6882efa 100644 --- a/app/views/profile_editor/index.rhtml +++ b/app/views/profile_editor/index.rhtml @@ -15,6 +15,8 @@ <%= file_manager_button(_('Pending tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %> <%= file_manager_button(_('Edit sideboxes'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %> + + <%= file_manager_button(_('Edit Appearance'), 'icons-app/design-editor.png', :controller => 'themes', :action => 'index') %> <%= file_manager_button(_('Edit Header and Footer'), 'icons-app/header-and-footer.png', :controller => 'profile_editor', :action => 'header_footer') %> diff --git a/app/views/shared/codepress.rhtml b/app/views/shared/codepress.rhtml new file mode 100644 index 0000000..91dad21 --- /dev/null +++ b/app/views/shared/codepress.rhtml @@ -0,0 +1 @@ +<%= javascript_include_tag 'codepress/codepress.js' %> diff --git a/app/views/themes/edit.rhtml b/app/views/themes/edit.rhtml new file mode 100644 index 0000000..bd3c8e6 --- /dev/null +++ b/app/views/themes/edit.rhtml @@ -0,0 +1,63 @@ +
+ <%# FIXME %> +

+ <%= _('Editing theme %s') % text_field_tag('theme_name', 'my theme') %> + <%= icon_button(:save, _('Save'), '#') %> +

+
+ +
+

<%= _('CSS files') %>

+ + <% button_bar do %> + <%= button(:add, _('New CSS'), '') %> + <% end %> +
+ +
+

<%= _('Images') %>

+ + <% button_bar do %> + <%= button(:add, _('Upload image'), '') %> + <% end %> +
+ +
+ <%# FIXME %> +

<%= _('CSS code: "%s"') % 'common.css' %>

+ + <% button_bar do %> + <%= button(:save, _('Save'), '') %> + <% end %> +
+ +<%= render :file => 'shared/codepress' %> diff --git a/public/javascripts/codepress/codepress.js b/public/javascripts/codepress/codepress.js index 96ea2e3..48c1d74 100644 --- a/public/javascripts/codepress/codepress.js +++ b/public/javascripts/codepress/codepress.js @@ -120,7 +120,7 @@ CodePress.run = function() { s = document.getElementsByTagName('script'); for(var i=0,n=s.length;i