mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
more share options
This commit is contained in:
parent
084a09c688
commit
4155211051
2 changed files with 18 additions and 4 deletions
|
@ -31,7 +31,7 @@
|
||||||
There are client libraries available for popular programming languages to make it easier to work with the API:
|
There are client libraries available for popular programming languages to make it easier to work with the API:
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://github.com/neocities/neocities-node" target="_blank">Node.js / JavaScript</a></li>
|
<li><a href="https://github.com/neocities/neocities-node" target="_blank">Node.js / JavaScript</a></li>
|
||||||
<li><a href="https://github.com/aergonaut/neocitizen" target="_blank">Ruby</a> - contributed by <a href="" target="_blank"></a></li>
|
<li><a href="https://github.com/aergonaut/neocitizen" target="_blank">Ruby</a> - contributed by <a href="https://twitter.com/aergonaut" target="_blank">Chris Fung</a></li>
|
||||||
<li><a href="https://github.com/peterhellberg/neocities" target="_blank">Go</a> - contributed by <a href="https://twitter.com/peterhellberg" target="_blank">Peter Hellberg</a></li>
|
<li><a href="https://github.com/peterhellberg/neocities" target="_blank">Go</a> - contributed by <a href="https://twitter.com/peterhellberg" target="_blank">Peter Hellberg</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -16,11 +16,14 @@
|
||||||
<div class="stat tips"><strong><%= site.tips_dataset.count %></strong> <span>tips</span></div>
|
<div class="stat tips"><strong><%= site.tips_dataset.count %></strong> <span>tips</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<% if current_site && current_site != site %>
|
<% if current_site == site %>
|
||||||
|
<a href="/dashboard" class="btn-Action edit"><span><i class="fa fa-pencil"></i> Edit Site</span></a>
|
||||||
|
<% end %>
|
||||||
|
<% if current_site != site %>
|
||||||
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>')" class="btn-Action <%= current_site.is_following?(site) ? '' : 'follow' %>">
|
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>')" class="btn-Action <%= current_site.is_following?(site) ? '' : 'follow' %>">
|
||||||
<span><%= current_site.is_following?(site) ? 'Unfollow' : 'Follow' %></span>
|
<span><%= current_site.is_following?(site) ? 'Unfollow' : 'Follow' %></span>
|
||||||
</a>
|
</a>
|
||||||
<a href="#" class="btn-Action tip"><span>Tip</span></a>
|
<!-- <a href="#" class="btn-Action tip"><span>Tip</span></a> -->
|
||||||
<% end %>
|
<% end %>
|
||||||
<a href="#" id="shareButton" class="btn-Action share" data-container="body" data-toggle="popover" data-placement="bottom" data-content='
|
<a href="#" id="shareButton" class="btn-Action share" data-container="body" data-toggle="popover" data-placement="bottom" data-content='
|
||||||
<a href="http://facebook.com/sharer.php?u=<%= Rack::Utils.build_query(u: "http://#{site.username}.neocities.org") %>" target="_blank">Facebook</a>
|
<a href="http://facebook.com/sharer.php?u=<%= Rack::Utils.build_query(u: "http://#{site.username}.neocities.org") %>" target="_blank">Facebook</a>
|
||||||
|
@ -30,6 +33,12 @@
|
||||||
<a href="http://www.reddit.com/submit?<%= Rack::Utils.build_query(title: "#{site.username}.neocities.org", url: "http://#{site.username}.neocities.org" )%>" target="_blank">Reddit</a>
|
<a href="http://www.reddit.com/submit?<%= Rack::Utils.build_query(title: "#{site.username}.neocities.org", url: "http://#{site.username}.neocities.org" )%>" target="_blank">Reddit</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="http://www.tumblr.com/share?<%= Rack::Utils.build_query(v: 3, u: "http://#{site.username}.neocities.org", t: "#{site.username}.neocities.org") %>" target="_blank">Tumblr</a>
|
<a href="http://www.tumblr.com/share?<%= Rack::Utils.build_query(v: 3, u: "http://#{site.username}.neocities.org", t: "#{site.username}.neocities.org") %>" target="_blank">Tumblr</a>
|
||||||
|
<br>
|
||||||
|
<a href="http://www.stumbleupon.com/submit?<%= Rack::Utils.build_query(url: "http://#{site.username}.neocities.org", title: "#{site.username}.neocities.org") %>" target="_blank">StumbleUpon</a>
|
||||||
|
<br>
|
||||||
|
<a href="http://del.icio.us/post?<%= Rack::Utils.build_query(url: "http://#{site.username}.neocities.org", title: "#{site.username}.neocities.org") %>" target="_blank">Del.ici.ous</a>
|
||||||
|
<br>
|
||||||
|
<a href="https://plus.google.com/share?<%= Rack::Utils.build_query(url: "http://#{site.username}.neocities.org") %>" target="_blank">Google+</a>
|
||||||
'>
|
'>
|
||||||
<span>Share</span></a>
|
<span>Share</span></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,7 +61,12 @@
|
||||||
|
|
||||||
<% if site.latest_events.empty? %>
|
<% if site.latest_events.empty? %>
|
||||||
<div>
|
<div>
|
||||||
<p>No activity yet.</p>
|
<p>No recent activity.</p>
|
||||||
|
<% if site == current_site %>
|
||||||
|
<p>
|
||||||
|
You should <a href="/dashboard">update your site</a>!
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%== erb :'_news', layout: false, locals: {site: site, events: site.events_dataset.order(:id.desc).all} %>
|
<%== erb :'_news', layout: false, locals: {site: site, events: site.events_dataset.order(:id.desc).all} %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue