Skip to content

Commit

Permalink
add lanyrd.url to identity (best place for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 5, 2011
1 parent adcfadd commit 453e259
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Here's an example ~;)
h2. TODO

* add lanyrd url to identity
* document cache management
* guide groups needs to be a site property (hash or array)
* document the features of the arquillian website (for the jboss.org focus group)
* iron out which module pages to enable for launch
Expand Down Expand Up @@ -333,6 +334,7 @@ h2. Nice to have

h2. Considering

* may want to set identity.lanryd.url when fetching speakers in lanyrd.rb
* could do div(filename). %src/test/java/MyTest.java%
* tabs for features?
* mention jboss testing guild?
Expand Down
4 changes: 4 additions & 0 deletions _ext/arquillian_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def identity(id)
def execute(site)
@identities = site.identities
site.speakers = site.identities.reject {|login, identity| not identity.speaker? }
# QUESTION is this the best place?
site.speakers.each_pair do |login, identity|
identity.lanryd.url = "http://lanryd.com/profile/#{identity.twitter_username}"
end
site.extend(SiteExtras)
end
end
Expand Down
1 change: 1 addition & 0 deletions _ext/lanyrd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def extract_sessions(page, sessions)
meta.search('a').each do |speaker_node|
name = speaker_node.inner_text.strip
username = speaker_node.attributes['href'].match(/\/profile\/([^\/]*)/)[1]
# QUESTION add identities for speakers if not exist?
session.speakers << {'name' => name, 'username' => username }
end
end
Expand Down
2 changes: 1 addition & 1 deletion invasion/events.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ javascripts: [ http://cdn.lanyrd.net/badges/person-v1.min.js ]
%img{:src=>"#{identity.avatar_url}?s=48", :alt=>identity.name, :style=>'vertical-align: middle; border: 3px double #ccc;'}
= identity.name
.lanyrd-target-splat
%a.lanyrd-splat.lanyrd-template-detailed{ :href=>"http://lanyrd.com/profile/#{username}/", :rel=>'me' } See all of #{identity.name}'s upcoming appearances &raquo;
%a.lanyrd-splat.lanyrd-template-detailed{ :href=>identity.lanyrd.url, :rel=>'me' } See all of #{identity.name}'s upcoming appearances &raquo;

0 comments on commit 453e259

Please sign in to comment.