Permalink
Browse files

first commit

  • Loading branch information...
machida committed Nov 2, 2010
1 parent e4ab06d commit 8dd6fdb00a63c3f600a8da0c73ef41535c1df6dd
View
@@ -0,0 +1,9 @@
+.article.section
+ .header
+ %h2.title= link_to post.title, post.link
+ .body
+ ~ post.body
+ .footer
+ .created_at= l post.created_at.to_time
+ - if logged_in?
+ %p= link_to t.edit, "/admin/posts/#{post.id}/edit"
View
@@ -0,0 +1,8 @@
+- @posts.each do |post|
+ = partial :article, :locals => {:post => post}
+ .pager
+ %ul
+ - if @posts.pager.previous_page
+ %li.previous= link_to t.newer, "?page=#{@posts.pager.previous_page}"
+ - if @posts.pager.next_page
+ %li.next= link_to t.older, "?page=#{@posts.pager.next_page}"
View
@@ -0,0 +1 @@
+= partial :article, :locals => {:post => @entry}
View
Binary file not shown.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,50 @@
+!!! XML
+!!!
+%html
+ %head
+ %meta{'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=utf-8'}
+ %meta{'http-equiv' => 'Content-Style-Type', 'content' => 'text/css'}
+ %meta{'http-equiv' => 'Content-Script-Type', 'content' => 'text/javascript'}
+ - if entry?
+ %title== #{@entry.title} - #{@site.title}
+ - else
+ %title== #{@site.title} - CMS for Cloud
+ %link{:rel => 'shortcut icon', :href => "#{@theme.path}/favicon.ico"}
+ %link{:title => @site.title, :rel => 'alternate', :href => '/index.atom', :type => 'application/atom+xml'}
+ %link{:rel => 'stylesheet', :href => "#{@theme.path}/style.css", :type => 'text/css'}
+ %script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", :type => "text/javascript"}
+ - if !logged_in? and ENV['RACK_ENV'] == 'production'
+ :javascript
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-107252-10']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ %body{:class => @theme_types.join(' ')}
+ #header
+ %h1.wide= link_to @site.title, "/"
+ .section
+ .nav
+ %ul.wide
+ - Page.all.each do |page|
+ %li
+ %a{:href => page.link}= page.title
+ .bred_crumbs.wide
+ = bread_crumb
+ #container
+ #main= yield
+ #aside
+ %dl
+ %dt= t.recent_entries
+ %dd
+ %ul
+ - Post.recent(5).each do |post|
+ %li= link_to post.title, post.link
+ #footer
+ .copy= link_to @site.title, "/"
+ .poweredby.wide
+ powered by <a href="http://lokka.org">Lokka</a>
+
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 8dd6fdb

Please sign in to comment.