Fix embed and gadget page.
Reviewed in https://codereview.appspot.com/6873059/.
This commit is contained in:
@@ -68,7 +68,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><img class=icon src="{{ item.icons.x16 }}"/> {{ item.title }}</td>
|
<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.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.name }}</td>
|
||||||
<td>{{ item.version}}</td>
|
<td>{{ item.version}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><img style="width: 16px; height: 16px" src="{{ item.icons.x16 }}"/> {{ item.name }} </td>
|
<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.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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -104,9 +104,8 @@ class ResourceHandler(webapp.RequestHandler):
|
|||||||
|
|
||||||
def get(self, service_name, version, collection):
|
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'
|
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():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user