summaryrefslogtreecommitdiff
path: root/views/models.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/models.haml')
-rw-r--r--views/models.haml11
1 files changed, 7 insertions, 4 deletions
diff --git a/views/models.haml b/views/models.haml
index e4f35b6..6a181df 100644
--- a/views/models.haml
+++ b/views/models.haml
@@ -17,10 +17,13 @@
= haml :regression, :layout => false
= haml :similarity, :layout => false
= haml :significant_fragments, :layout => false
+-# - if is_authorized(model.web_uri, "GET")
-- if @models
- - @models.each do |model|
- - if is_authorized(model.web_uri, "GET")
- = haml :model, :locals=>{:model=>model}, :layout => false
+- first = 5*@page
+- last = first+4
+= models_navigation
+- 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.