summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-06-16 15:39:38 +0200
committermr <mr@mrautenberg.de>2011-06-16 15:39:38 +0200
commita6bc5cd38c6880653fc4f30d1418ca8f664c9379 (patch)
tree3a9a525ef7073d6d910dbaf8a3b713e4f1f92e1d
parentfe98831689d9658d723acd1f6dc77d2804bcf7fa (diff)
add notice if there are no models
-rw-r--r--views/models.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/models.haml b/views/models.haml
index 6724807..9ab2858 100644
--- a/views/models.haml
+++ b/views/models.haml
@@ -21,3 +21,5 @@
- if @models
- @models.each do |model|
= haml :model, :locals=>{:model=>model,:subjectstring=>subjectstring}, :layout => false
+-if @models.size == 0
+ .notice There are currently no models. You have to create a model first.