app/views/reports/index.html.erb in treport-0.1.0 vs app/views/reports/index.html.erb in treport-0.2.0
- old
+ new
@@ -30,10 +30,11 @@
<td><%= report.connect.name %></td>
<td><%= report.sql_code %></td>
<td><%= report.is_sql_category %></td>
<td><%= report.template %></td>
<td><%= report.category_name %></td>
+ <td><%= link_to '查看', report_path(report) %></td>
<td><%= link_to '修改', edit_report_path(report) %></td>
<td><%= link_to '条件', report_requirements_path(report) %></td>
<td><%= link_to '系列', report_series_index_path(report) %></td>
<td><%= link_to '分类字典', dictionaries_path(resource_type: "Report", resource_id: report.id) %></td>
<td><%= link_to '删除', report, method: :delete, data: {confirm: '你确定要删除么?'} %></td>
@@ -44,6 +45,6 @@
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
</div>
-</section>
\ No newline at end of file
+</section>