Dashing widgets to display:
- a user's public photos
- a user's favourite photos
Live demo:
http://camilledashing.herokuapp.com/dashboard
Put the flickr.rb file in your /jobs folder
Create a new flickr folder in your /widgets folder, and add the three following files to that folder:
- flickr.scss
- flickr.html
- flickr.coffee
Add the following gem to your Gemfile:
gem 'nokogiri'
then run:
bundle
To include the widgets in a dashboard, add the following snippet:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="flickr_faves" data-view="Flickr" style="background-color:#800080;" data-moreinfo="Favourite photos"></div>
</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="flickr_public" data-view="Flickr" style="background-color:#96bf48;" data-moreinfo="My public photos"></div>
</li>
The only setting you have to change is the flickr user ID, which you can set by adding the following line in your config.ru file (the whole example of config.ru is available lower in the gist):
set :flickr_id, '101571970@N05'
If you don't know your flickr ID, try: http://idgettr.com/