summaryrefslogtreecommitdiff
path: root/app/views/home/index.html.erb
blob: b1a567e6cee2792df2894e7c39082f89b890ad7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>

<h1>oh hai</h1>
<%= link_to "all licenses", v1_licenses_path %>

<h2>Licenses</h2>
<ul>
  <% @licenses.each do |license| %>
    <li><%= link_to "license #{license.id}", v1_license_path(license) %></li>
<% end %>
</ul>

<h2>Companies</h2>
<ul>
  <% @companies.each do |company| %>
    <li>
  <%= company.name %>
  <ul>
    <li>
    <%= link_to "active", v1_company_licenses_path(company) %> 
    <ul>
      <% @locations.each do |location| %>
        <li> <%= link_to location.township, v1_company_licenses_path(company, status: "active", township: location.township) %> </li>
    <% end %>
    </ul>
    </li>
    <li> 
    <%= link_to "expired", v1_company_licenses_path(company, status: "expired") %> 
    <ul>
      <% @locations.each do |location| %>
        <li> <%= link_to location.township, v1_company_licenses_path(company, status: "expired", township: location.township) %> </li>
    <% end %>
    </ul>
    </li>
    <li> 
    <%= link_to "confidential", v1_company_licenses_path(company, status: "confidential") %> 
    <ul>
      <% @locations.each do |location| %>
        <li> <%= link_to location.township, v1_company_licenses_path(company, status: "confidential", township: location.township) %> </li>
    <% end %>
    </ul>
    </li>
  </ul>
  </li>
<% end %>
</ul>
</body>
</html>