Skip to content

Commit

Permalink
Improve the sections list
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Apr 17, 2011
1 parent 3300437 commit 407bb70
Show file tree
Hide file tree
Showing 11 changed files with 64 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/stylesheets/RonRonnement.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,15 @@ body#wiki_pages-revision {
}
}

body#sections-index .body {
overflow: hidden;
.section {
float: left;
width: 120px;
height: 120px;
}
}

body#static-show #contents,
body#sections-index #contents,
body#admin-index #container > ul,
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/sections/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
%td
= section.state == "published" ? "publiée" : "archivée"
%td
= link_to "Changer le logo", edit_admin_section_path(section)
= link_to "Modifier", edit_admin_section_path(section)
= button_to "Archiver", [:admin, section], :method => :delete, :confirm => "Archiver la section ?"
5 changes: 4 additions & 1 deletion app/views/sections/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
.body
- @sections.each do |section|
= div_for section do
= link_to section.title, section
= link_to section do
= image_tag section.image, :alt => section.title, :title => section.title
<br/>
= section.title
1 change: 1 addition & 0 deletions app/views/trackers/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
%td= tracker.assigned_to
%td= tracker.user ? link_to(tracker.user.name, tracker.user) : "Anonyme"
%td= tracker.category_title
%td= link_to tracker.category_title, "/suivi?tracker[category_id]=#{tracker.category_id}"
%td= tracker.state_name
%td.number= tracker.score
%td.number= tracker.comments.count
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/RonRonnement.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement-Bordeau.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement-Mauve.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement-Orange.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement-Turquoise.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement-Vert.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/contrib/RonRonnement.css
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,13 @@ body#wiki_pages-revision #contents nav ul {
body#wiki_pages-revision #contents nav ul li:first-of-type:after {
content: ""; }

body#sections-index .body {
overflow: hidden; }
body#sections-index .body .section {
float: left;
width: 120px;
height: 120px; }

body#static-show #contents a[href],
body#sections-index #contents a[href],
body#admin-index #container > ul a[href],
Expand Down

0 comments on commit 407bb70

Please sign in to comment.