diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-02 19:33:54 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-02 19:33:54 +0100 |
commit | 387d3cfb7c150591f167bae16ca7f7128062aed8 (patch) | |
tree | 2695534b5ec3eb94a29d5e1fb9e2a352f9c32a80 /web/views | |
parent | 4ddaaeb4d6acb9d48be3ca48cc18daff7191fa8d (diff) | |
download | taginfo-387d3cfb7c150591f167bae16ca7f7128062aed8.tar taginfo-387d3cfb7c150591f167bae16ca7f7128062aed8.tar.gz |
Move paging parameter handling into new class
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/taginfo/apidoc.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/views/taginfo/apidoc.erb b/web/views/taginfo/apidoc.erb index d3685b3..3dab6d2 100644 --- a/web/views/taginfo/apidoc.erb +++ b/web/views/taginfo/apidoc.erb @@ -7,17 +7,17 @@ <p style="color: red;">This list of API calls and their descriptions are not complete!</p> <ul> -<% APIDoc.paths.keys.sort.each do |version| - APIDoc.paths[version].keys.sort.each do |path| - doc = APIDoc.paths[version][path] %> +<% API.paths.keys.sort.each do |version| + API.paths[version].keys.sort.each do |path| + doc = API.paths[version][path] %> <li><a href="#<%= doc.complete_path.tr('/', '_')[1,1000] %>"><%= doc.complete_path %></li> <% end end %> </ul> -<% APIDoc.paths.keys.sort.each do |version| - APIDoc.paths[version].keys.sort.each do |path| - doc = APIDoc.paths[version][path] %> +<% API.paths.keys.sort.each do |version| + API.paths[version].keys.sort.each do |path| + doc = API.paths[version][path] %> <a name="<%= doc.complete_path.tr('/', '_')[1,1000] %>"></a> <h2><%= doc.complete_path %></h2> <table class="desc"> |