forked from diaspora/diaspora-project-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Schubert
committed
Jun 25, 2013
1 parent
e85258e
commit b0a216b
Showing
34 changed files
with
711 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
// | ||
//= require jquery | ||
//= require jquery_ujs | ||
//= require turbolinks | ||
//= require_tree . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
*/ | ||
|
||
@import "bootstrap"; | ||
@import "bootstrap-responsive"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
html, body { | ||
height: 100%; | ||
} | ||
|
||
#wrap { | ||
min-height: 100%; | ||
height: auto !important; | ||
height: 100%; | ||
margin: 0 auto -60px; | ||
} | ||
|
||
#pusher { | ||
height: 60px; | ||
} | ||
|
||
footer { | ||
height: 40px; | ||
background-color: #f5f5f5; | ||
padding: 20px 20px 0; | ||
|
||
p { | ||
color: #666; | ||
} | ||
} | ||
|
||
.navbar-fixed-top { | ||
#mainnav { | ||
margin-top: 20px; | ||
} | ||
|
||
.brand { | ||
padding: 5px 20px; | ||
|
||
#header-logo { | ||
height: 70px; | ||
} | ||
} | ||
|
||
.btn { | ||
margin-left: 10px; | ||
} | ||
} | ||
|
||
#main-container { | ||
padding-top: 90px; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.navbar-fixed-top { | ||
position: static; | ||
} | ||
|
||
#main-container { | ||
padding-top: 0; | ||
} | ||
|
||
footer { | ||
margin-left: -20px; | ||
margin-right: -20px; | ||
padding-left: 40px; | ||
padding-right: 40px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class BlogController < ApplicationController | ||
respond_to :html | ||
|
||
def index | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
class PagesController < ApplicationController | ||
respond_to :html | ||
|
||
def show | ||
params[:id] ||= 'home' | ||
@page = Page.find_by_url params[:id] | ||
def index | ||
end | ||
|
||
def about | ||
end | ||
|
||
if @page | ||
respond_with @page | ||
else | ||
not_found | ||
end | ||
def get_involved | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
module ApplicationHelper | ||
def page_title(title, suffix = t(:title)) | ||
if title.blank? or title =~ /home/i | ||
return suffix | ||
else | ||
return "#{title} - #{suffix}" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Blogpost < ActiveRecord::Base | ||
attr_accessible :title, :published, :content | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class User < ActiveRecord::Base | ||
devise :database_authenticatable, :recoverable, | ||
:rememberable, :trackable, :validatable | ||
|
||
attr_accessible :email, :password, :password_confirmation, :remember_me | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<%- content_for :page_title do %> | ||
<%= t('pages.blog.menu_title') %> | ||
<% end %> | ||
|
||
<div class="page-header"> | ||
<h1><%= t('pages.blog.headline') %> <small><%= t('pages.blog.subline') %></small></h1> | ||
</div> | ||
|
||
Ohai, blog! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>DiasporaProjectSite</title> | ||
<%= stylesheet_link_tag "application", :media => "all" %> | ||
<%= javascript_include_tag "application" %> | ||
<title><%= page_title yield(:page_title) %></title> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="shortcut icon" href="/favicon.png"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<%= stylesheet_link_tag 'application', :media => 'all' %> | ||
<%= javascript_include_tag 'application' %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
<div id="wrap"> | ||
<div class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="navbar-inner"> | ||
<div class="container-fluid"> | ||
<%= link_to root_url(:subdomain => false), :class => 'brand' do %> | ||
<%= image_tag 'logo.png', :alt=> t('title'), :title => t('title'), :id => 'header-logo' %> | ||
<% end %> | ||
<div id="mainnav" class="pull-right"> | ||
<ul class="nav"> | ||
<li><%= link_to t('pages.about.menu_title'), about_url(:subdomain => false) %></li> | ||
<li><%= link_to t('pages.get_involved.menu_title'), get_involved_url(:subdomain => false) %></li> | ||
<li><%= link_to t('pages.blog.menu_title'), blog_index_url(:subdomain => 'blog') %></li> | ||
<li><a href="#contact">Wiki</a></li> | ||
<li><a href="#contact">Planet</a></li> | ||
</ul> | ||
<a href="#" class="btn btn-success">Host yourself</a> | ||
<a href="#" class="btn btn-success">Join Diaspora*</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="main-container" class="container-fluid"> | ||
<%= yield %> | ||
|
||
<%= yield %> | ||
|
||
<div id="pusher"></div> | ||
</div> | ||
</div> | ||
<footer> | ||
<p><%= t('meta.footer.copyleft') %></p> | ||
</footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<%- content_for :page_title do %> | ||
<%= t('pages.about.menu_title') %> | ||
<% end %> | ||
|
||
<div class="page-header"> | ||
<h1><%= t('pages.about.headline') %></h1> | ||
</div> | ||
|
||
<p><%= t('pages.home.welcome_paragraph') %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<%- content_for :page_title do %> | ||
<%= t('pages.get_involved.menu_title') %> | ||
<% end %> | ||
|
||
<div class="page-header"> | ||
<h1><%= t('pages.get_involved.headline') %></h1> | ||
</div> | ||
|
||
<p><%= t('pages.home.welcome_paragraph') %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="page-header"> | ||
<h1><%= t('pages.home.headline') %></h1> | ||
</div> | ||
|
||
<p><%= t('pages.home.welcome_paragraph') %></p> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.