diff options
author | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:06 +0800 |
---|---|---|
committer | Mike Chen <chagel@gmail.com> | 2009-07-05 10:23:06 +0800 |
commit | 2acb62174ab2cac9c7a88faafcb5f0a22a54db6f (patch) | |
tree | 93e9d22d6fb8a6c882e3915a8511a3ac542a1e67 /templates/header.html | |
download | askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.gz askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.tar.bz2 askbot-2acb62174ab2cac9c7a88faafcb5f0a22a54db6f.zip |
initiliaze git rep
Diffstat (limited to 'templates/header.html')
-rw-r--r-- | templates/header.html | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 00000000..b362a5e6 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,64 @@ +{% load extra_tags %}
+ <div id="top">
+ <div id="header">
+ {% if request.user.is_authenticated %}
+ <a href="/users/{{ request.user.id }}/{{ request.user.username }}/">{{ request.user.username }}</a> {% get_score_badge request.user %} <a href="/logout/">退出登录</a>
+ {% else %}
+ <a href="/account/signin">登录</a>
+ {% endif %}
+ <a href="/about">关于本站</a>
+ <a href="/faq">常见问题</a>
+ </div>
+ </div>
+ <div id="roof">
+ <div id="navBar">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="23%">
+ <div id="logo">
+ <a href="/">
+ <img src="/content/images/logo.png" title="回到首页" />
+ </a>
+ </div>
+ </td>
+ <td width="77%" valign="bottom">
+ <div class="nav">
+ <a id="nav_questions" href="/questions/" >问题</a>
+ <a id="nav_tags" href="/tags/">标签</a>
+ <a id="nav_users" href="/users/">用户</a>
+ <a id="nav_books" href="/books/">读书</a>
+ <a id="nav_badges" href="/badges/">奖牌榜</a>
+ <a id="nav_unanswered" href="/questions/unanswered/">没有回答的问题</a>
+
+ {% if request.user.is_authenticated %}
+ <a id="nav_profile" href="/users/{{ request.user.id }}/{{ request.user.username }}/">我的资料</a>
+ {% endif %}
+ <div class="focus">
+ <a id="nav_ask" href="/questions/ask/" class="special">我要提问</a>
+ </div>
+ </div>
+
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="searchBar">
+ <table width="100%" height="60" border="0" cellpadding="0" cellspacing="0" class="content">
+ <tr>
+ <td align="center" valign="middle">
+ <form action="/search/" method="GET">
+ <div>
+ <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" >
+ <input type="submit" name="Submit" value="搜索" class="searchBtn" >
+ </div>
+ <div class="options">
+ <input id="type-question" type="radio" class="" value="question" name="t" checked >问题
+ <input id="type-tag" type="radio" class="" value="tag" name="t" >标签
+ <input id="type-user" type="radio" class="" value="user" name="t" >用户
+ </div>
+ </form>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
\ No newline at end of file |