Fix embed and gadget page.
Reviewed in https://codereview.appspot.com/6873059/.
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<tr>
|
||||
<td><img class=icon src="{{ item.icons.x16 }}"/> {{ item.title }}</td>
|
||||
<td><a target=_top href="{{ item.documentationLink }}">Documentation</a></td>
|
||||
<td><a target=_top href="/{{ item.name }}_{{ item.safe_version }}.html">PyDoc</a></td>
|
||||
<td><a target=_top href="https://google-api-client-libraries.appspot.com/documentation/{{ item.name }}/{{ item.version }}/python/latest/">PyDoc</a></td>
|
||||
<td>{{ item.name }}</td>
|
||||
<td>{{ item.version}}</td>
|
||||
</tr>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<tr>
|
||||
<td><img style="width: 16px; height: 16px" src="{{ item.icons.x16 }}"/> {{ item.name }} </td>
|
||||
<td><a href="{{ item.documentationLink }}">Documentation</a></td>
|
||||
<td><a href="/{{ item.name }}_{{ item.safe_version }}.html">PyDoc</a></td>
|
||||
<td><a href="https://google-api-client-libraries.appspot.com/documentation/{{ item.name }}/{{ item.version }}/python/latest/">PyDoc</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
@@ -104,9 +104,8 @@ class ResourceHandler(webapp.RequestHandler):
|
||||
|
||||
def get(self, service_name, version, collection):
|
||||
|
||||
real_version = describe.unsafe_version(version)
|
||||
return self.redirect('https://google-api-client-libraries.appspot.com/documentation/%s/%s/python/latest/%s_%s.%s.html'
|
||||
% (service_name, real_version, service_name, real_version, collection))
|
||||
% (service_name, version, service_name, version, collection))
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user