Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
7c29d95
Add pinterest button and reorganize social sharing
ospsuite Aug 1, 2014
4ff926e
Correct typo in README
Intrepidd Dec 1, 2014
bb69a8e
Use binstubs in examples instead of bundle exec
anthonylewis Dec 1, 2014
46816e2
Merge pull request #217 from Intrepidd/patch-1
ospsuite Dec 1, 2014
69fe49f
Merge pull request #218 from anthonylewis/patch-1
ospsuite Dec 1, 2014
6d23306
Remove ruby version files
nateberkopec Dec 3, 2014
1df6f11
Update README.md
kerrizor Dec 3, 2014
0c3bd88
Merge pull request #222 from kerrizor/patch-1
ospsuite Dec 3, 2014
13f380f
Merge pull request #220 from nateberkopec/remove-ruby-version
jipiboily Dec 5, 2014
fc93c8c
Fixup travis.yml, test Ruby 2.1 + Rails 4.1
nateberkopec Dec 3, 2014
0ef9ed3
Merge pull request #221 from nateberkopec/travis-config
jipiboily Dec 5, 2014
8a47f82
update on readme contribution chapter
Dec 8, 2014
c32f7e1
Add support for tag oriented feeds #213
a-b-r-o-w-n Dec 9, 2014
2d0273f
Change single quote to double per style guide
a-b-r-o-w-n Dec 9, 2014
8fd3515
Upgrade ckeditor gem to one that works properly with Rails 4+ asset p…
dept42 Dec 13, 2014
4e4ef65
Added post's tags as a data attribute on the section element
Jan 7, 2015
fa05819
Classified tag names and added the class to the tag's span element
Jan 7, 2015
bb26bcb
Eager load users on blog & admin posts#index page
quainjn Jan 31, 2015
2b820f7
Fix space for CI
quainjn Jan 31, 2015
2faa441
Merge pull request #225 from jethroo/chore/dummy_setup_for_development
ospsuite Jan 31, 2015
959c1ab
Merge pull request #227 from dept42/ckeditor_upgrade
ospsuite Jan 31, 2015
c50ae3d
Updating gem spec for gem compatibility
ThomasTheFourth Feb 11, 2015
7ad7893
adds config options for number of posts per page in admin module
Feb 13, 2015
f189b1f
adds method for paginated default post listing
Feb 13, 2015
537fb6c
adds pagination route for posts in admin module
Feb 13, 2015
80bde16
adds use of new method for paginated post listing in admin
Feb 13, 2015
8a3f893
adds pagination to admin post index
Feb 13, 2015
8e22695
adds spec for paginated admin post route
Feb 13, 2015
755ca7e
removes redundant self
Feb 13, 2015
2368ecc
adds parens to method argument
Feb 13, 2015
caf2947
better aligns config params
Feb 13, 2015
7fd178b
Merge pull request #234 from quainjn/master
ospsuite Feb 13, 2015
183bd8b
Merge pull request #231 from ben5516/post_tags
ospsuite Feb 13, 2015
8b0ccc6
refactors paging methods
Feb 13, 2015
ae2b5f3
Merge branch 'master' into admin-post-paging
Feb 13, 2015
8efac3e
added admin:posts:index:author key and values (used Google translate …
weedySeaDragon Feb 16, 2015
d7688e7
synchronized locale files: removed blank line(s); ensured all have th…
weedySeaDragon Feb 16, 2015
00b31cc
git line normalization so windows end of line is OK
weedySeaDragon Feb 16, 2015
d82ecff
Issue #122: renamed pt.yml localization file to pt-BR.yml and changed…
mateusazis Feb 25, 2015
2d1ad16
Fix testing dummy Gemfile
nicolasiensen Mar 3, 2015
17587de
Fix application_helper tests
nicolasiensen Mar 3, 2015
42ca6a1
Refactoring application_helper_spec file
nicolasiensen Mar 3, 2015
6a98c30
Refactoring application_helper_spec file
nicolasiensen Mar 3, 2015
467c8d8
Refactoring application_helper_spec file
nicolasiensen Mar 3, 2015
e923b81
Update path to routes file
octosteve Mar 25, 2015
23c987d
add monologue:views generator
DawnyWu Apr 6, 2015
78d7720
Update views_generator.rb file
DawnyWu Apr 6, 2015
7d54af3
Add responders gem to allow the engine to be run in rails 4.2
jaimerson May 1, 2015
a4f0a67
Add font files to assets precompile
jaimerson May 1, 2015
ea16605
layout: false for feed
hakunin May 7, 2015
f4041f3
Improved performance on tag frequency calculation
May 7, 2015
bbecb3d
customize layout for personal purposes
kyle-annen Jul 30, 2015
b2009af
fix partial
kyle-annen Jul 30, 2015
b461795
Revert "fix partial"
kyle-annen Jul 30, 2015
4bbc2c2
revert
kyle-annen Jul 30, 2015
024a17a
Merge pull request #261 from kyle-annen/master
ospsuite Jul 30, 2015
8bc0ff3
Merge pull request #257 from hakunin/master
ospsuite Jul 30, 2015
83e9cf3
Merge pull request #248 from nicolasiensen/master
ospsuite Jul 30, 2015
2d85b6d
Merge pull request #239 from caitlingoldman/admin-post-paging
ospsuite Jul 30, 2015
1541dfb
Merge pull request #244 from weedySeaDragon/issue-243--i18n-minor-cle…
ospsuite Jul 30, 2015
b4d1ad0
Merge pull request #250 from StevenNunez/patch-1
ospsuite Jul 30, 2015
e486a3d
fixed view getting error notice when post saved successfully
MathiasPfeil Aug 4, 2015
a55b680
Merge pull request #253 from DawnyWu/master
ospsuite Aug 12, 2015
d1b19c3
Update README.md
ospsuite Aug 12, 2015
8892bae
Merge branch 'master' of https://github.com/mateusazis/monologue into…
ospsuite Aug 12, 2015
72ad0b4
Merge branch 'master' of https://github.com/jipiboily/monologue
ospsuite Aug 12, 2015
a3e1c40
fix merge conflicts
ospsuite Aug 12, 2015
ebface3
Fix merge conflicts
ospsuite Aug 12, 2015
ddd49bb
monologue.gemspec
ospsuite Aug 12, 2015
b5c1632
Merge pull request #258 from jcarreti/tag_frequency_performance
ospsuite Aug 12, 2015
9a11bf4
Revert "Improved performance on tag frequency calculation"
ospsuite Aug 12, 2015
f1ef541
Merge pull request #265 from jipiboily/revert-258-tag_frequency_perfo…
ospsuite Aug 12, 2015
f7d7f89
use responders 2.1
ospsuite Aug 12, 2015
a5542a3
Merge branch 'master' of https://github.com/jipiboily/monologue
ospsuite Aug 12, 2015
39b04c5
Change coffee rails version depedencies
ospsuite Aug 13, 2015
1f6b8de
Merge pull request #264 from Scootin/master
ospsuite Aug 13, 2015
9e3eea8
Bump version to 0.4.2 compatible with rails 4.2
ospsuite Aug 13, 2015
a0198eb
Update README.md
ospsuite Aug 13, 2015
7d0156c
Merge branch 'master' of https://github.com/jipiboily/monologue
ospsuite Aug 13, 2015
4ca70ab
Ensure view generates viewsby default under the views folder and fixe…
ospsuite Nov 23, 2015
a89714e
Add new config setting preview_size and fixes #268
ospsuite Nov 23, 2015
3d8d6c4
Bump to version 0.5.0
ospsuite Dec 10, 2015
eb86247
Merge pull request #276 from jipiboily/0-5-stable
ospsuite Dec 10, 2015
e418a87
Adds ButterCMS sponsorship
Nov 21, 2016
291956b
Merge pull request #300 from rogerjin12/patch-1
jipiboily Nov 21, 2016
fe905b3
updating documentation
illegalnumbers Nov 27, 2016
dbf1708
updating to rails specific version fixes #303
illegalnumbers Nov 27, 2016
042047f
refs #303 fixing turbolinks spec error
illegalnumbers Nov 27, 2016
9f60d33
fixes #302
illegalnumbers Nov 27, 2016
7bb860b
Merge pull request #307 from illegalnumbers/master
jipiboily Dec 1, 2016
b4bbdbb
Add twitter support
p12y Feb 22, 2017
c5df49e
Update .travis.yml
msevestre Mar 2, 2017
8fe4cce
Merge pull request #310 from ptylde/master
msevestre Mar 2, 2017
e496d7f
remove IRC from README has there is no one there anymore
jipiboily Mar 7, 2017
a684f15
Update README.md
jipiboily Mar 8, 2017
f0a7e81
Revert "Adds ButterCMS sponsorship"
jipiboily Jul 2, 2017
ca8dc32
Merge pull request #317 from jipiboily/revert-300-patch-1
jipiboily Jul 2, 2017
e7c787b
update README with status of the project
jipiboily Oct 22, 2017
87d7fc2
Merge pull request #318 from jipiboily/update-readme
jipiboily Oct 22, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ coverage/
.idea/
.idea/**/*

Gemfile.lock
Gemfile.lock
*.lock

.ruby-version
.rbenv-version
.rvmrc

1 change: 0 additions & 1 deletion .rbenv-version

This file was deleted.

1 change: 0 additions & 1 deletion .rvmrc

This file was deleted.

13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
language: ruby

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- mv spec/dummy/config/database-travis.yml spec/dummy/config/database.yml
- bundle exec rake db:create db:migrate

rvm:
- 1.9.3
- 2.0.0
- 2.1.0

gemfile:
- spec/support/gemfiles/rails4_0.gemfile
- spec/support/gemfiles/rails4_1.gemfile

sudo: false

env:
- DB=mysql DB_USERNAME=root
- DB=postgresql DB_USERNAME=postgres
- DB=postgresql DB_USERNAME=postgres
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "http://rubygems.org"
source "https://rubygems.org"

# Declare your gem's dependencies in monologue.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
Expand All @@ -16,7 +16,8 @@ gemspec

group :development, :test do
gem "thin"
gem 'rails', '>= 4.0.4'
gem 'rails', '= 4.2.7'
gem 'responders', '~> 2.0'
gem 'pry'

if RUBY_PLATFORM.downcase.include?("darwin")
Expand All @@ -26,5 +27,5 @@ group :development, :test do
end

gem 'coveralls', require: false

gem 'pg'
gem 'turbolinks'
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@

**THIS README IS FOR THE MASTER BRANCH AND REFLECTS THE WORK CURRENTLY EXISTING ON THE MASTER BRANCH. IF YOU ARE WISHING TO USE A NON-MASTER BRANCH OF MONOLOGUE, PLEASE CONSULT THAT BRANCH'S README AND NOT THIS ONE.**

-
**NOT MAINTAINED ANYMORE**: This project hasn't been maintained for a while. It's pretty basic and should still work. Chances are issues and PRs might not receive the attention they deserve, at least, not quickly, if at all.

Monologue is a basic mountable blogging engine in Rails built to be easily mounted in an already existing Rails app, but it can also be used alone.
Monologue is a basic, mountable blogging engine in Rails built to be easily mounted in an already existing Rails app, but it can also be used alone.

## Version

This README is for a future Monologue version, that will be 0.4.X and be Rails 4 specific. See other branches for other versions (0-3-stable being the latest stable version).
This README is for the latest version of Monologue (0-5-stable being the latest stable version).

## Upgrade and changes

To know how to upgrade, see [UPGRADE.md](https://github.com/jipiboily/monologue/blob/master/UPGRADE.md) file. If you want to know what changed since the last versions, see [CHANGELOG.md](https://github.com/jipiboily/monologue/blob/master/CHANGELOG.md).
To learn how to upgrade, see [UPGRADE.md](https://github.com/jipiboily/monologue/blob/master/UPGRADE.md) file. If you want to learn what changed since the last versions, see [CHANGELOG.md](https://github.com/jipiboily/monologue/blob/master/CHANGELOG.md).

## Questions? Problems? Documentation?

- [Mailing list for questions](http://groups.google.com/forum/#!forum/monologue-rb)
- [Issues and bugs](http://github.com/jipiboily/monologue/issues)
- [Wiki](https://github.com/jipiboily/monologue/wiki/_pages)
- IRC channel (on Freenode): #monologue.

## Some features
- Rails mountable engine (fully named spaced and mountable in an already existing app)
- Rails mountable engine (fully namespaced and mountable in an already existing app)
- tested
- back to basics: few features
- tags (or categories)
Expand All @@ -46,15 +45,15 @@ To know how to upgrade, see [UPGRADE.md](https://github.com/jipiboily/monologue/


## Installation
### 1. Add the gem to your `Gemfile`. This will get the latest version compatible with Rails 4 until we release a gem
### 1. Add the gem to your `Gemfile`.
```ruby
gem 'monologue', github: 'jipiboily/monologue'
gem 'monologue'
```
And run `bundle install` to fetch the gem and update your 'Gemfile.lock'.

### 2. Route to Monologue

Add this to your route file (`config/route.rb`)
Add this to your route file (`config/routes.rb`)
```ruby
# This line mounts Monologue's routes at the root of your application.
# This means, any requests to URLs such as /my-post, will go to Monologue::PostsController.
Expand All @@ -70,33 +69,37 @@ be available at `/monologue`.
### 3. Migrate Monologue's database tables
Run these commands:

1. $`bundle exec rake monologue:install:migrations`
2. $`bundle exec rake db:create` (only if this is a new project)
3. $`bundle exec rake db:migrate`
1. $`bin/rake monologue:install:migrations`
2. $`bin/rake db:create` (only if this is a new project)
3. $`bin/rake db:migrate`


### 4. Create a user
Open your development console with `rails c`, then:
Open your development console with `bin/rails c`, then:
```ruby
Monologue::User.create(name: "monologue", email:"monologue@example.com", password:"my-password", password_confirmation: "my-password")
```

### 5. Configure Monologue.
This is all done in an initializer file, say `config/initializers/monologue.rb`. More on this in the [Wiki - Configuration](https://github.com/jipiboily/monologue/wiki/Configuration).
This is all done in an initializer file, typically `config/initializers/monologue.rb`. More on this in the [Wiki - Configuration](https://github.com/jipiboily/monologue/wiki/Configuration).

### 6. Ready
Start your server and head on [http://localhost:3000/monologue](http://localhost:3000/monologue) to log in the admin section.
Start your server and go to [http://localhost:3000/monologue](http://localhost:3000/monologue) to log in the admin section.


### Note to users
Monologue is using his own tables. If you want to use your own tables with monologue (for example the User table)
this might help you to monkey patch [Monkey Patch](https://gist.github.com/jipiboily/776d907fc932640ac59a)
Monologue is using its own tables. If you want to use your own tables with monologue (for example the User table)
this might help you to [monkey patch](https://gist.github.com/jipiboily/776d907fc932640ac59a).

## Customization
See the [Wiki - Customizations](https://github.com/jipiboily/monologue/wiki/Customizations).

## Copy views
copy views like devise `rails g monologue:views`
or use scope: `rails g monologue:views blog`

## Requirements
- Rails 4.0.4 +
- Rails 4.2.1 +
- Database: MySQL & Postgres are supported but other databases might work too.

## Authors
Expand Down Expand Up @@ -124,7 +127,8 @@ Starting point:
* Fork the repo
* Clone your repo
* Run `bundle install`
* Run `bundle exec rake test_app` to create the test application in `spec/dummy`
* Run `bundle exec rake db:migrate`
* Run `bundle exec rake db:setup`
* Make your changes
* Ensure specs pass by running `bundle exec rspec spec`
* Submit your pull request
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Upgrade Monologue
## 0.4.0 to 0.5.0
- No update required


## 0.3.0 to 0.4.0
- Change of syntax for configuration. Please use Monologue::Config instead of the old Monologue module
Expand Down
1 change: 0 additions & 1 deletion app/assets/javascripts/monologue/admin/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
//= require monologue/bootstrap/bootstrap-datepicker-fr
//= require monologue/bootstrap/bootstrap-datepicker-pt
//= require monologue/bootstrap/bootstrap-datepicker-es
//= require ckeditor/override
//= require ckeditor/init
//= require monologue/admin/ckeditor-config
//= require monologue/admin/posts
Expand Down
3 changes: 2 additions & 1 deletion app/assets/javascripts/monologue/admin/ckeditor-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ $(function() {
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks' ] }
];
});
CKEDITOR.config.disableNativeSpellChecker = false;
}());
3 changes: 2 additions & 1 deletion app/controllers/monologue/admin/posts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ class Monologue::Admin::PostsController < Monologue::Admin::BaseController
before_filter :load_post, only: [:edit, :update]

def index
@posts = Monologue::Post.default
@page = params[:page].nil? ? 1 : params[:page]
@posts = Monologue::Post.listing_page(@page).includes(:user)
end

def new
Expand Down
7 changes: 6 additions & 1 deletion app/controllers/monologue/posts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Monologue::PostsController < Monologue::ApplicationController
def index
@page = params[:page].nil? ? 1 : params[:page]
@posts = Monologue::Post.page(@page).published
@posts = Monologue::Post.page(@page).includes(:user).published
end

def show
Expand All @@ -17,5 +17,10 @@ def show

def feed
@posts = Monologue::Post.published.limit(25)
if params[:tags].present?
tags = Monologue::Tag.where(name: params[:tags].split(",")).pluck(:id)
@posts = @posts.joins(:taggings).where("monologue_taggings.tag_id in (?)", tags)
end
render 'feed', layout: false
end
end
22 changes: 16 additions & 6 deletions app/models/monologue/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def published_in_future?
end

def self.page p
per_page = Monologue::Config.posts_per_page || 10
set_total_pages(per_page)
p = (p.nil? ? 0 : p.to_i - 1)
offset = p * per_page
self.limit(per_page).offset(offset)
paged_results(p, Monologue::Config.posts_per_page || 10, false)
end

def self.listing_page(p)
paged_results(p, Monologue::Config.admin_posts_per_page || 50, true)
end

def self.total_pages
Expand All @@ -54,6 +54,17 @@ def self.set_total_pages per_page

private

def self.paged_results(p, per_page, admin)
set_total_pages(per_page)
p = (p.nil? ? 0 : p.to_i - 1)
offset = p * per_page
if admin
default.limit(per_page).offset(offset)
else
limit(per_page).offset(offset)
end
end

def generate_url
return unless self.url.blank?
year = self.published_at.class == ActiveSupport::TimeWithZone ? self.published_at.year : DateTime.now.year
Expand All @@ -63,5 +74,4 @@ def generate_url
def url_do_not_start_with_slash
errors.add(:url, I18n.t("activerecord.errors.models.monologue/post.attributes.url.start_with_slash")) if self.url.start_with?("/")
end

end
2 changes: 1 addition & 1 deletion app/views/layouts/monologue/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<% end %>
<div class="container">
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, id: "flash_#{name}", class: (name == :notice ? "alert alert-info" : "alert alert-error") %>
<%= content_tag :div, msg, id: "flash_#{name}", class: (name == 'notice' ? "alert alert-info" : "alert alert-error") %>
<% end %>

<%= yield %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/monologue/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
<%= render 'layouts/monologue/application/disqus' %>
<%= render 'layouts/monologue/application/gauge_analytics' %>
</body>
</html>
</html>
9 changes: 9 additions & 0 deletions app/views/monologue/admin/posts/_pagination.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div id="pagination">
<% if @posts.total_pages > 1 && @posts.total_pages != @page.to_i %>
<%= link_to t(".older_posts"), admin_posts_page_path(@page.to_i+1), class: "older_posts" %>
<% end %>

<% if @posts.total_pages > 1 && @page.to_i > 1 %>
<%= link_to t(".newer_posts"), admin_posts_page_path(@page.to_i-1), class: "newer_posts" %>
<% end %>
</div>
4 changes: 4 additions & 0 deletions app/views/monologue/admin/posts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
<% end %>
</tbody>
</table>

<% if @page %>
<%= render partial: "pagination" %>
<% end %>
6 changes: 3 additions & 3 deletions app/views/monologue/posts/_post.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<section>
<section data-tags="<%= post.tags.map(&:name).join(' ') %>">
<%= render partial: 'monologue/posts/post_header', locals: {post: post} %>

<div class="content" data-monologue="content">
<%= truncate_html(post.content, length: 1000, omission: '...') %>
<%= truncate_html(post.content, length: Monologue::Config.preview_size, omission: '...') %>
</div>

<div class="tags" data-monologue="tags">
<%= render post.tags %>
</div>
<%= link_to t(".readmore"), post.full_url, class: "button" %>
</section>
</section>
68 changes: 17 additions & 51 deletions app/views/monologue/posts/_social_sharing.html.erb
Original file line number Diff line number Diff line change
@@ -1,51 +1,17 @@
<footer class="monologue-social-sharing" data-monologue="monologue-social-sharing">
<span class="social-tagline"><%= t(".tagline") %></span>
<div id="social-share">
<div id="google-plus">
<!-- GOOGLE +1 -->
<!-- Placez cette balise là où vous souhaitez positionner le bouton +1. -->
<g:plusone size="medium"></g:plusone>

<!-- Placez cet appel d'affichage à l'endroit approprié. -->
<script type="text/javascript">
window.___gcfg = {lang: '<%=Monologue::Config.google_plusone_locale || "en" %>'};

(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<!-- /GOOGLE +1 -->
</div>
<div id="twitter">
<!-- TWITTER -->
<a href="https://twitter.com/share" class="twitter-share-button"
data-lang="<%= Monologue::Config.twitter_locale || "en" %>"
data-url="<%= request.protocol %><%= request.host_with_port %><%= request.path.gsub("//","/") %>"
data-via="<%=Monologue::Config.twitter_username%>"
data-text="<%=@post.title%>"
data-count="horizontal">Tweet</a>

<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<!-- /TWITTER -->
</div>


<div id="facebook">
<!-- FACEBOOK LIKE -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/<%= Monologue::Config.facebook_like_locale || "en_US" %>/all.js#xfbml=1&appId=288133081204194";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-send="false" data-width="450" data-show-faces="false"></div>
<!-- /FACEBOOK LIKE -->
</div>


</div>
</footer>
<div class="monologue-social-sharing" data-monologue="monologue-social-sharing">
<span class="social-tagline"><%= t('.tagline') %></span>
<ul id="social-share">
<li id="google-plus">
<%= render :partial => 'monologue/posts/social/pinterest' %>
</li>
<li id="twitter">
<%= render :partial => 'monologue/posts/social/twitter' %>
</li>
<li id="google-plus">
<%= render :partial => 'monologue/posts/social/gplus' %>
</li>
<li id="facebook">
<%= render :partial => 'monologue/posts/social/facebook' %>
</li>
</ul>
</div>
Loading