Commit 3316b62cebeba17adbef92a82ecafa6753402873
- Date: Sat Jan 26 17:57:51 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 3316b62cebeba17adbef92a82ecafa6753402873
- Tree SHA1: 26e42d59455945dec4ef0618c93b978f446d0bd5
move sidebar content into maincontent when not logged in on frontpage
Commit diff
| |   |
| 7 | 7 | |
| 8 | 8 | <div id="site_overview"> |
| 9 | 9 | <%= image_tag("overview.png") -%> |
| 10 | <% unless logged_in? -%> |
| 11 | <p class="hint create_account_hint"> |
| 12 | <%= link_to "Creating a user account", new_user_path -%> will allows you to create |
| 13 | your own project or participate in the development of any project. |
| 14 | </p> |
| 15 | <% end -%> |
| 10 | 16 | </div> |
| 11 | 17 | |
| 12 | 18 | <div id="newest_projects"> |
| … | … | |
| 36 | 36 | <% end %> |
| 37 | 37 | </ul> |
| 38 | 38 | </div> |
| 39 | | |
| 40 | | <% content_for :sidebar do -%> |
| 41 | | <% unless logged_in? -%> |
| 42 | | <p class="hint"> |
| 43 | | <%= link_to "Creating a user account", new_user_path -%> will allows you to create |
| 44 | | your own project or participate in the development of any project. |
| 45 | | </p> |
| 46 | | <% end -%> |
| 47 | | <% end -%> |
| toggle raw diff |
--- a/app/views/site/index.html.erb
+++ b/app/views/site/index.html.erb
@@ -7,6 +7,12 @@
<div id="site_overview">
<%= image_tag("overview.png") -%>
+ <% unless logged_in? -%>
+ <p class="hint create_account_hint">
+ <%= link_to "Creating a user account", new_user_path -%> will allows you to create
+ your own project or participate in the development of any project.
+ </p>
+ <% end -%>
</div>
<div id="newest_projects">
@@ -30,12 +36,3 @@
<% end %>
</ul>
</div>
-
-<% content_for :sidebar do -%>
-<% unless logged_in? -%>
-<p class="hint">
- <%= link_to "Creating a user account", new_user_path -%> will allows you to create
- your own project or participate in the development of any project.
-</p>
-<% end -%>
-<% end -%>
\ No newline at end of file |
| |   |
| 726 | 726 | text-align: center; |
| 727 | 727 | margin-bottom: 4em; |
| 728 | 728 | } |
| 729 | |
| 730 | #site_overview p.create_account_hint { |
| 731 | margin-top: 1.5em; |
| 732 | } |
| toggle raw diff |
--- a/public/stylesheets/base.css
+++ b/public/stylesheets/base.css
@@ -726,3 +726,7 @@ table.codediff col.lines {
text-align: center;
margin-bottom: 4em;
}
+
+#site_overview p.create_account_hint {
+ margin-top: 1.5em;
+} |