Commit 87796506eac314313ceefa72d5e9b8d20fec062e

Authored by AntonioTerceiro
1 parent 3f709f13

ActionItem93: adjusting control panel



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@922 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/helpers/application_helper.rb
... ... @@ -369,4 +369,9 @@ module ApplicationHelper
369 369 ]
370 370 select_tag "#{object}[#{method}]", options_for_select(options, @page.filter_type || Comatose.config.default_filter), { :id=> "#{object}_#{method}" }.merge(html_options)
371 371 end
  372 +
  373 + def control_panel_button(title, icon, url)
  374 + end
  375 +
  376 +
372 377 end
... ...
app/views/profile_editor/index.rhtml
... ... @@ -2,14 +2,22 @@
2 2  
3 3 <%= display_profile_info(profile) %>
4 4  
5   -<% if @profile.class == Person %>
6   - <p> <%= link_to _('Edit'), :action => 'edit' %> </p>
7   -<% elsif @profile.class == Enterprise %>
8   - <p> <%= link_to _('Edit'), :controller => 'enterprise_editor'%> </p>
9   -<% else %>
  5 +<div class='file-manager'>
10 6  
11   -<% end %>
  7 + <%= content_tag('div', link_to(image_tag('icons-app/edit-profile.png', :alt => _('Edit Profile'), :title => _('Edit Profile')) + tag('br') + _('Edit Profile'), :controller => 'profile_editor', :action => 'edit'), :class => 'file-manager-button') %>
12 8  
13   -<p> <%= link_to _('Edit Visual Design'), :action => 'design_editor' %> </p>
  9 + <%= content_tag('div', link_to(image_tag('icons-app/design-editor.png', :alt => _('Edit Visual Design'), :title => _('Edit Visual Design')) + tag('br') + _('Edit Visual Design'), :controller => 'profile_editor', :action => 'design_editor'), :class => 'file-manager-button') %>
  10 +
  11 + <%= content_tag('div', link_to(image_tag('icons-app/cms.png', :alt => _('Manage Content'), :title => _('Manage Content')) + tag('br') + _('Manage Content'), :controller => 'cms'), :class => 'file-manager-button') %>
  12 +
  13 + <%= content_tag('div', link_to(image_tag('icons-app/change-password.png', :alt => _('Change Password'), :title => _('Change Password')) + tag('br') + _('Change Password'), :controller => 'account', :action => 'change_password'), :class => 'file-manager-button') %>
14 14  
  15 +</div>
  16 +<br style='clear: left'/>
  17 +
  18 +<!--
  19 +<p> <%= link_to _('Edit Visual Design'), :action => 'design_editor' %> </p>
15 20 <p> <%= link_to _('Menage content'), :controller => 'cms' %> </p>
  21 +-->
  22 +
  23 +<h2><%= _('My organizations') %></h2>
... ...
public/images/icons-app/abiword_48.png 0 → 100644

4.76 KB

public/images/icons-app/change-password.png 0 → 120000
... ... @@ -0,0 +1 @@
  1 +password.png
0 2 \ No newline at end of file
... ...
public/images/icons-app/cms.png 0 → 120000
... ... @@ -0,0 +1 @@
  1 +abiword_48.png
0 2 \ No newline at end of file
... ...
public/images/icons-app/design-editor.png 0 → 120000
... ... @@ -0,0 +1 @@
  1 +gnome-settings-background.png
0 2 \ No newline at end of file
... ...
public/images/icons-app/edit-profile.png 0 → 120000
... ... @@ -0,0 +1 @@
  1 +user_icon.png
0 2 \ No newline at end of file
... ...
public/images/icons-app/gnome-settings-background.png 0 → 100644

5.39 KB

public/images/icons-app/password.png 0 → 100644

3.35 KB

public/images/icons-app/user_icon.png 0 → 100644

3.44 KB

public/stylesheets/common.css
... ... @@ -95,3 +95,29 @@ float: right;
95 95 margin-right: 20px;
96 96 height: 20px;
97 97 }
  98 +
  99 +div.file-manager {
  100 + clear: both;
  101 +}
  102 +
  103 +div.file-manager-button {
  104 + float: left;
  105 + width: 140px;
  106 + text-align: center;
  107 + border: 1px solid #ccc;
  108 + margin-right: 0.5em;
  109 + margin-top: 0.5em;
  110 +}
  111 +
  112 +div.file-manager-button a img {
  113 + border: none;
  114 +}
  115 +div.file-manager-button a {
  116 + display: block;
  117 + padding: 3px;
  118 + height: 80px;
  119 + overflow: hidden;
  120 +}
  121 +div.file-manager-button a:hover {
  122 + background: #ffc;
  123 +}
... ...