Skip to content

Commit

Permalink
add share to firend link
Browse files Browse the repository at this point in the history
  • Loading branch information
yinghuocho committed Mar 6, 2015
1 parent 8680548 commit 8cb1235
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpanel/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from web.contrib.template import render_mako

urls = (
'/favicon.ico', 'icon',
'/static/(.*)', 'static',

'/about', 'about',
Expand Down Expand Up @@ -80,6 +81,10 @@ def update_config(update, reboot=True, ipc=True, reload_hosts=False):
resp = json.dumps([{'message': u'系统错误'}])
raise web.HTTPError(status, headers, unicode(resp))

class icon:
def GET(self):
raise web.seeother("/static/img/favicon.ico")

class static:
def GET(self, name):
web.header("Content-Type", "text/plain; charset=utf-8")
Expand Down
1 change: 1 addition & 0 deletions webpanel/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li><a href="/proxy">代理配置</a></li>
<li><a href="/blacklist">黑名单配置</a></li>
<li><a href="/hosts">Hosts 配置</a></li>
<li><a href="https://gofirefly.org/share" target="_blank">分享给朋友</a></li>
<li class="active"><a href="/about">关于</a></li>
</ul>
</%block>
Expand Down
1 change: 1 addition & 0 deletions webpanel/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<li><a href="/proxy">代理配置</a></li>
<li><a href="/blacklist">黑名单配置</a></li>
<li><a href="/hosts">Hosts 配置</a></li>
<li><a href="https://gofirefly.org/share" target="_blank">分享给朋友</a></li>
<li><a href="/about">关于</a></li>
</ul>
</%block>
Expand Down
1 change: 1 addition & 0 deletions webpanel/templates/blacklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li><a href="/proxy">代理配置</a></li>
<li class="active"><a href="/blacklist">黑名单配置</a></li>
<li><a href="/hosts">Hosts 配置</a></li>
<li><a href="https://gofirefly.org/share" target="_blank">分享给朋友</a></li>
<li><a href="/about">关于</a></li>
</ul>
</%block>
Expand Down
1 change: 1 addition & 0 deletions webpanel/templates/hosts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li><a href="/proxy">代理配置</a></li>
<li><a href="/blacklist">黑名单配置</a></li>
<li class="active"><a href="/hosts">Hosts 翻墙</a></li>
<li><a href="https://gofirefly.org/share" target="_blank">分享给朋友</a></li>
<li><a href="/about">关于</a></li>
</ul>
</%block>
Expand Down
1 change: 1 addition & 0 deletions webpanel/templates/proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li class="active"><a href="/proxy">代理配置</a></li>
<li><a href="/blacklist">黑名单配置</a></li>
<li><a href="/hosts">Hosts 配置</a></li>
<li><a href="https://gofirefly.org/share" target="_blank">分享给朋友</a></li>
<li><a href="/about">关于</a></li>
</ul>
</%block>
Expand Down

0 comments on commit 8cb1235

Please sign in to comment.