mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-19 02:39:54 +00:00
Fix JSON loading of articles
This commit is contained in:
parent
0aea6dae4b
commit
45ccebd015
2 changed files with 1 additions and 9 deletions
|
@ -1,11 +1,3 @@
|
||||||
<ul class="articles">
|
|
||||||
<% sorted_articles[0..9].each do |article| %>
|
<% sorted_articles[0..9].each do |article| %>
|
||||||
<%= render 'article', :article => article %>
|
<%= render 'article', :article => article %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="pagination">
|
|
||||||
<a href="/articles/#page-0" class="older">« Older</a>
|
|
||||||
|
|
|
||||||
<a href="/articles/#page-2" class="newer">Newer »</a>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -29,5 +29,5 @@ jQuery(function() {
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery.get('/articles/index.json', {}, articles_loaded, 'json');
|
jQuery.get('json/articles.json', {}, articles_loaded, 'json');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue