diff options
author | Azul <azul@riseup.net> | 2016-09-14 11:11:48 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-14 11:11:48 +0200 |
commit | f575f57915d5369269849352a70b0e4704c3fd19 (patch) | |
tree | 7b13646448e64e560101493eeac1a03c3a25dbd8 /app/views/home | |
parent | 92481029074f34342cc35937f3aab94aca7887c7 (diff) | |
parent | 22478d315af3590d2a344eb1aa8cf2aec0730506 (diff) |
Merge remote-tracking branch 'pr/237' into develop
Twitter Feature on Main-View from @loadtocode
Twitter feature within home/index of LEAP web app as feed of tweets of one user's twitter account
How to use it: set up an Application-only authentication by twitter (https://dev.twitter.com/oauth/application-only) and then create a config/secrets.yml including:
```
development:
twitter:
enabled: false # set to true for usage
twitter_handle: XXXXX #put your twitter handle here
bearer_token: XXXXX #put your bearer token here
test:
twitter:
enabled: false # set to true for usage
twitter_handle: XXXXX #put your twitter handle here
bearer_token: XXXXX #put your bearer token here
```
things in the PR:
- [x] gemfile:twitter
- [x] twitter helper (caching (to avoid reaching twitter rate limits)
- [x] index twitter view
- [x] twitter css (twitter design as discussed in call: Profil-Header: Picture, Link to twitter + twitter_handle; removed picture and twitter_handle from individual tweet, heading aligns at the top, only the last 3 tweets are shown)
- [x] script to generate bearer token
- [x] script to invalidate generated bearer token
- [x] documentation (Readme + Doc)
Diffstat (limited to 'app/views/home')
-rw-r--r-- | app/views/home/_content.html.haml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/app/views/home/_content.html.haml b/app/views/home/_content.html.haml index 67e4533..5341189 100644 --- a/app/views/home/_content.html.haml +++ b/app/views/home/_content.html.haml @@ -1,12 +1,19 @@ -.row - %h1= t(:welcome, :provider => APP_CONFIG[:domain]) - .p=t(:welcome_message_html) - -.row - = home_page_buttons - - - if Rails.env == 'development' - .row - %hr - %p - = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present? +.col-md-8 + .row + %h1= t(:welcome, :provider => APP_CONFIG[:domain]) + .p=t(:welcome_message_html) + + .row + = home_page_buttons + +.col-md-1 + +.col-md-3 + .row + = render 'twitter/index' + + - if Rails.env == 'development' + .row + %hr + %p + = link_to "make donation", new_payment_path if APP_CONFIG[:payment].present? |