Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use HTML5 elements where appropriate.

  • Loading branch information...
commit 14c7757121c061e3a293ffeb63661ea131686490 1 parent 442d339
@funkaoshi authored
View
3  .gitignore
@@ -1 +1,2 @@
-old
+cache
+tmp
View
4 config.ru
@@ -12,9 +12,7 @@ Sinatra::Base.set(:env, :production);
use Rack::Cache,
:verbose => true,
:metastore => "file:cache/meta",
- :entitystore => "file:cache/body",
- :allow_reload => false,
- :allow_revalidate => false
+ :entitystore => "file:cache/body"
require 'groupviewer.rb'
run Sinatra::Application
View
2  groupviewer.rb
@@ -76,7 +76,7 @@ def nav_links
else
"<a class='prev_page' href='/group/#{@group_id}?pg=#{@page-1}'>Prev</a>"
end
- "<span class='nav'>#{prev_link} | #{@page} of #{@pages} | #{next_link}</span>"
+ "#{prev_link} | #{@page} of #{@pages} | #{next_link}"
end
end
View
0  public/favicon.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  public/favicon.ico
No changes.
View
3  public/site.css
@@ -10,7 +10,7 @@ body {
padding:0;
}
-#footer {
+footer {
color: #777;
margin-top:40px;
}
@@ -40,6 +40,7 @@ a {
text-decoration: none;
font-weight: bold;
color: #222;
+ border: 0;
}
a:hover {
View
29 views/group.haml
@@ -1,7 +1,7 @@
!!! 5
%html
%head
- %meta(http-equiv='Content-Type' content='text/html; charset=utf-8')
+ %meta(charset='utf-8')
%meta(name='viewport' content='width=600')
%title GROUP VIEWQVZ :: #{@name}
%link(rel='stylesheet' href='/site.css' type='text/css' media='screen' title='default style sheet')
@@ -9,21 +9,22 @@
%script(type='text/javascript' src='/paging_keys.js')
%body
#content
- #header
+ %header
%h1 Viewing #{@name}
- %p
- %form(action='/group' method='post')
- %label(for='url') View another group?
+ %form(action='/group' method='post')
+ %p
+ %label(for='searchbox') View another group?
%input#searchbox(type='text' name='url' value='http://flickr.com/groups/onthestreet')
%input#ok(type='submit' value='OK')
#images
- %p= nav_links
- %p j/k keys will move between photos (and pages)
- %table
- - @sequence.each do |img|
- .photo.hentry{:id => img.id}
- %a{:href => img.flickr_url}>
- %img{:src => img.img_url}>
- %p= nav_links
- #footer
+ %nav
+ %p= nav_links
+ %p j/k keys will move between photos (and pages)
+ - @sequence.each do |img|
+ .photo.hentry{:id => img.id}
+ %a{:href => img.flickr_url}>
+ %img{:src => img.img_url}>
+ %nav
+ %p= nav_links
+ %footer
%p Site designed and built by <a href="http://funkaoshi.com">Ramanan Sivaranjan</a>.
View
17 views/index.haml
@@ -1,25 +1,26 @@
!!! 5
%html
%head
- %meta(http-equiv='Content-Type' content='text/html; charset=utf-8')
+ %meta(charset='utf-8')
%title GROUP VIEWQVZ
%link(rel='stylesheet' href='/site.css' type='text/css' media='screen' title='default style sheet')
%body
#content
- #header
+ %header
%h1 Flickr Group Viewer
#index
%p
Use Flickr Group Viewer to quickly browse through the photographs in a
flickr group. Drop the group URL into the form below. You can browse
between photographs (and pages) using the j/k keys on your keyboard.
- %p
- %form(action='/group' method='post')
- %label(for='url') Flickr Group URL:
+ %form(action='/group' method='post')
+ %p
+ %label(for='searchbox') Flickr Group URL:
%input#searchbox(type='text' name='url' value='http://flickr.com/groups/onthestreet')
%input#ok(type='submit' value='OK')
- %p
- :markdown
+ -#
+ %p
+ :markdown
Example galleries: [Photographs on the Brain][1], [HCSP][2], [La Pura Vida][3], [Your Photo Isn't that Great][4], Contract Killers[5].
[1]: /group/photographsonthebrain
@@ -27,5 +28,5 @@
[3]: /group/lapuravida
[4]: /group/yousuck
[5]: /group/the-hit
- #footer
+ %footer
%p Site designed and built by <a href="http://funkaoshi.com">Ramanan Sivaranjan</a>.
View
12 views/wtf.haml
@@ -1,19 +1,19 @@
!!! 5
%html
%head
- %meta(http-equiv='Content-Type' content='text/html; charset=utf-8')
+ %meta(charset='utf-8')
%title GROUP VIEWQVZ :: WTF?!
%link(rel='stylesheet' href='/site.css' type='text/css' media='screen' title='default style sheet')
%body
#content
- #header
+ %header
%h1 WTF?!
#index
%p Yeah, so something went wrong. Who knows what? Let's not play the blame game.
- %p
- %form(action='/group' method='post')
- %label(for='url') View another group?
+ %form(action='/group' method='post')
+ %p
+ %label(for='searchbox') View another group?
%input#searchbox(type='text' name='url' value='http://flickr.com/groups/onthestreet')
%input#ok(type='submit' value='OK')
- #footer
+ %footer
%p Site designed and built by <a href="http://funkaoshi.com">Ramanan Sivaranjan</a>.
Please sign in to comment.
Something went wrong with that request. Please try again.