summaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-19 09:57:01 +0200
committerJochen Topf <jochen@topf.org>2014-09-19 09:57:01 +0200
commit393e11f721c526b46c6da3c12d6b10583b3ff959 (patch)
tree1f533ef96201ce9a3b238a825222ab8fa95b53d3 /web/views
parentd3482cff9698d1e636669d7e4680b240d92fbdef (diff)
downloadtaginfo-393e11f721c526b46c6da3c12d6b10583b3ff959.tar
taginfo-393e11f721c526b46c6da3c12d6b10583b3ff959.tar.gz
Show JOSM-related API calls as deprecated.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/taginfo/apidoc.erb16
1 files changed, 6 insertions, 10 deletions
diff --git a/web/views/taginfo/apidoc.erb b/web/views/taginfo/apidoc.erb
index 79b71d1..a6bf9d6 100644
--- a/web/views/taginfo/apidoc.erb
+++ b/web/views/taginfo/apidoc.erb
@@ -8,11 +8,9 @@
<% API.paths.keys.sort.each do |version|
if version > 0
API.paths[version].keys.sort.each do |path|
- doc = API.paths[version][path]
- if !doc.deprecated? || params[:show_deprecated] %>
- <li><a href="#<%= doc.complete_path.tr('/', '_')[1,1000] %>"><%= doc.complete_path %></a><%= doc.deprecated? ? " <span class='bad'>Deprecated. Use <a href='##{ doc.superseded_by.tr('/', '_')[1,1000] }'>#{ doc.superseded_by }</a> instead.</span>" : '' %></li>
-<% end
- end
+ doc = API.paths[version][path] %>
+ <li><a href="#<%= doc.complete_path.tr('/', '_')[1,1000] %>"><%= doc.complete_path %></a><%= doc.deprecated? ? " <span class='bad'>Deprecated</span>" : '' %></li>
+<% end
end
end %>
</ul>
@@ -21,10 +19,9 @@
if version > 0
API.paths[version].keys.sort.each do |path|
doc = API.paths[version][path]
- if !doc.deprecated? || params[:show_deprecated]
- hashpath = doc.complete_path.tr('/', '_')[1,1000] %>
+ hashpath = doc.complete_path.tr('/', '_')[1,1000] %>
<a name="<%= hashpath %>"></a>
-<h2><%= doc.complete_path %><%= doc.deprecated? ? " <span class='bad'>Deprecated. Use <a href='##{ doc.superseded_by.tr('/', '_')[1,1000] }'>#{ doc.superseded_by }</a> instead.</span>" : '' %></h2>
+<h2><%= doc.complete_path %><%= doc.deprecated? ? " <span class='bad'>Deprecated</span>" : '' %></h2>
<table class="desc">
<tr>
<th>Path:</th>
@@ -69,7 +66,6 @@
</tr>
<% end %>
</table>
-<% end
- end
+<% end
end
end %>