luci-app-statistics: remove non-functional links from graphs
authorHannu Nyman <hannu.nyman@iki.fi>
Mon, 13 Feb 2017 17:05:35 +0000 (19:05 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Mon, 13 Feb 2017 17:10:51 +0000 (19:10 +0200)
The statistics graphs on the pages with multiple data sources
have contained links to the data sources, but those links
have not worked. Remove the links as they are unnecessary.

This commit fixes #1006

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
applications/luci-app-statistics/luasrc/view/public_statistics/graph.htm

index ebc78ba..85a20d9 100644 (file)
@@ -29,9 +29,7 @@
 
 <div style="text-align: center">
        <% for i, img in ipairs(images) do %>
 
 <div style="text-align: center">
        <% for i, img in ipairs(images) do %>
-               <% if is_index then %><a href="<%=pcdata(images[img])%>"><% end %>
                <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
                <img src="<%=REQUEST_URI%>?img=<%=img%>&#38;host=<%=current_host%>" />
-               <% if is_index then %></a><% end %>
                <br />
        <% end %>
 </div>
                <br />
        <% end %>
 </div>