Skip to content

Instantly share code, notes, and snippets.

@jdickey
Created July 29, 2014 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdickey/2f663776849e16bf2bc8 to your computer and use it in GitHub Desktop.
Save jdickey/2f663776849e16bf2bc8 to your computer and use it in GitHub Desktop.
Divitis example -- Bootstrap styling
- posts = PostData \
.select { |post| post.author_name == @user.name } \
.map(&:decorate)
div class='row'
div class='col-md-12'
div class='row'
div class='col-md-1'  
div class='col-md-10'
div class='row'
h1 Profile Page for #{@user.name}
div class='panel panel-default'
div class='panel-heading'
h3 class='panel-title' User Profile/Bio Information
div class='panel-body'
== @user.profile
div class='row' id='contrib-row'
h3 Articles Authored By #{@user.name}
ul class='list-group'
- posts.each do |post|
li class='list-group-item'
a href="/posts/#{post.slug}" "#{post.title}" Published #{post.pubdate.localtime.strftime '%c %Z'}
div class='col-md-1'  
hr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment