You are here: Home > Latest news from Darcs > Some styling for attached images

Revision 20080729040518-49d33-f81a87...

Some styling for attached images

  
app/helpers/application_helper.rb
app/views/wiki/_attached_images.rhtml
db/translation/pt-BR.rb
public/stylesheets/motiro.css

Changes to application_helper.rb

57
             :href => url_for(last.values.first.update(:only_path => true)))
             :href => url_for(last.values.first.update(:only_path => true)))
57
58
      end unless params[:context] == 'partial'
      end unless params[:context] == 'partial'
58
59
      b.div(:class => 'page-title') do
      b.div(:class => 'page-title') do
59
60
        b.span(title, :class => 'page-title')
        b.h1 title
60
61
        b << ' '
        b << ' '
61
62
        b.span(revision, :id => 'revision') unless revision.nil?
        b.span(revision, :id => 'revision') unless revision.nil?
62
63
      end
      end
63

Changes to _attached_images.rhtml

1
<div id="attachments">
<div class="attachments">
1
 
  <h1><%= 'Images attached to this page'.t %></h1>
2
2
  <% @page.images.each do |img| %>
  <% @page.images.each do |img| %>
3
3
    <%= link_to(image_tag(img.public_filename(:thumb)),
    <%= link_to(image_tag(img.public_filename(:thumb)),
4
4
                img.public_filename) %>
                img.public_filename) %>
5

Changes to pt-BR.rb

93
'Compare revisions' => 'Comparar revisões',
'Compare revisions' => 'Comparar revisões',
93
94
94
95
# Page details bar
# Page details bar
95
 
'Images attached to this page' => 'Imagens anexadas a esta página',
96
96
'Edit' => 'Editar',
'Edit' => 'Editar',
97
97
'(requires authentication)' => '(identifique-se, por favor)',
'(requires authentication)' => '(identifique-se, por favor)',
98
98
'(not authorized)' => '(não autorizado)',
'(not authorized)' => '(não autorizado)',
99

Changes to motiro.css

79
  margin-bottom: 1em;
  margin-bottom: 1em;
79
80
}
}
80
81
81
82
span.page-title {
div.page-title h1 {
82
83
  font-size: 2em;
  font-size: 2em;
83
84
  font-weight: bold;
  font-weight: bold;
84
 
  margin: 0;
85
85
}
}
86
86
87
 
div.attachments { border-top: 1px dotted #9C9C9C; }
88
 
div.attachments h1 { font-size: 1.4em; }
89
 
90
87
span#revision {
span#revision {
91
88
  color: #808080;
  color: #808080;
92
89
  font-size: 1em;
  font-size: 1em;
93