summaryrefslogtreecommitdiff
path: root/views/models.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-09-23 12:17:31 +0200
committermr <mr@mrautenberg.de>2011-09-23 12:17:31 +0200
commitc00f2a9f3386922b62fa1013cecd222f8e8acb52 (patch)
tree42068b975b9b0041b267958f691b7e55f0d030ab /views/models.haml
parente2f8adcc24470548f0c4a7d9b5cb0d4ab929fb51 (diff)
parente967ffe75370d39d0928e440a9023e2da6e35ae3 (diff)
Merge branch 'release/v3.0.0'
Diffstat (limited to 'views/models.haml')
-rw-r--r--views/models.haml13
1 files changed, 8 insertions, 5 deletions
diff --git a/views/models.haml b/views/models.haml
index 9ab2858..1419e37 100644
--- a/views/models.haml
+++ b/views/models.haml
@@ -3,7 +3,7 @@
:javascript
$(function() {
if(#{stati != 0}) {
- setTimeout('checkStati("#{stati_to_check}", "#{subjectstring}")',5000);
+ setTimeout('checkStati("#{stati_to_check}", "")',5000);
}
var reload_validation = true;
});
@@ -18,8 +18,11 @@
= haml :similarity, :layout => false
= haml :significant_fragments, :layout => false
-- if @models
- - @models.each do |model|
- = haml :model, :locals=>{:model=>model,:subjectstring=>subjectstring}, :layout => false
--if @models.size == 0
+- first = 5*@page
+- last = first+4
+= models_navigation if @models.size > 1
+- if @models[first..last]
+ - @models[first..last].each do |model|
+ = haml :model, :locals=>{:model=>model}, :layout => false
+-if @models.size == 0
.notice There are currently no models. You have to create a model first.