You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<tdwidth="10px"><%=link_toimage_tag("typus/trash.gif"),{:action=>'destroy',:id=>item},:confirm=>"Remove this entry?"%></td>
47
-
</tr>
48
-
<%end%>
49
-
50
-
</table>
21
+
<divid="list">
22
+
23
+
<%if@model.count > 0-%>
24
+
25
+
<%if@items.size > 0-%>
51
26
52
-
<!-- -->
27
+
<%=render:partial=>"table"%>
28
+
<!-- -->
53
29
54
-
<%else-%>
30
+
<%else-%>
55
31
56
-
<divclass="box" id="empty">
57
-
<%ifparams[:search]%>
58
-
<p>No <strong><%=params[:model]%></strong> match the search <strong><%=params[:search]%></strong></p>
59
-
<%else%>
60
-
<p>There are no <strong><%=params[:model]%></strong> with the filter <strong><%=params[:filter_by]%></strong> set to <strong><%=params[:filter_id]%></strong>. <%=link_to"Remove filter?",:action=>"index",:model=>params[:model]%></p>
61
-
<%end%>
62
-
</div>
32
+
<divclass="box" id="empty">
33
+
<%ifparams[:search]%>
34
+
<p>No <strong><%=params[:model]%></strong> match the search <strong><%=params[:search]%></strong></p>
35
+
<%else%>
36
+
<p>There are no <strong><%=params[:model]%></strong> with the filter <strong><%=params[:filter_by]%></strong> set to <strong><%=params[:filter_id]%></strong>. <%=link_to"Remove filter?",:action=>"index",:model=>params[:model]%></p>
37
+
<%end%>
38
+
</div>
63
39
64
-
<scripttype="text/javascript">
65
-
newEffect.Highlight('empty');
66
-
</script>
40
+
<scripttype="text/javascript">
41
+
newEffect.Highlight('empty');
42
+
</script>
67
43
68
-
<%end-%>
44
+
<%end-%>
69
45
70
-
<%else-%>
46
+
<%else-%>
71
47
72
-
<p><%=link_to"Add the first #{params[:model].singularize}",:action=>"new",:model=>params[:model]%></p>
48
+
<p><%=link_to"Add the first #{params[:model].singularize}",:action=>"new",:model=>params[:model]%></p>
0 commit comments