diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-10-30 10:16:21 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-10-30 10:16:21 +0800 |
commit | 1e4a9c0565c3d2f52ec205ae7627ebfc84278735 (patch) | |
tree | b26921e2f5fdec3fa7578584d10ba476abbace40 /97suifangqa/templates/sciblog/blog_list.html | |
parent | 02afd8a32edb13ea7fc2266ac80092ea15c0930c (diff) | |
download | 97dev-1e4a9c0565c3d2f52ec205ae7627ebfc84278735.tar.bz2 |
* moved 'ValueKind' model from 'recommend/models' to 'indicator/models'
* added field 'type' for 'indicator.models.Indicator'
* added field 'kind' for 'indicator.models.IndicatorRecord',
'InnateConfine'
* updated methods for models 'Indicator', 'IndicatorRecord',
'InnateConfine'
* updated views and templates for 'apps/indicator'
* added 'INDICATOR_RECOMMEND_PERIOD' into 'settings.py'
* added 'type' field for 'indicator.models.Indicator' in
'search_indexes.py'
* added a confirm step for 'EditHistoryData' page when delete a record
* removed dir 'backupdata'; 'queries.txt' moved to 'backup' dir
* moved *.json to 'backup' dir
* removed 'apps/managers*.py'
* updated 'indicator/popup/IndexDesc.html'
* created dir 'apps/indicator/obsolete';
* moved 'indicator/forms.py' to dir 'obsolete';
* splitted views related forms.py from 'views.py', and placed in
'obsolete/views_forms.py'
* loadded newest data into database
* cleaned pervious data files in 'backup' dir
* updated 'README.txt'; added a solution to a redis problem
* added field 'type' of 'indicator.models.Indicator';
for filtering search results and only returning 'NORMAL_TYPE'
Diffstat (limited to '97suifangqa/templates/sciblog/blog_list.html')
-rw-r--r-- | 97suifangqa/templates/sciblog/blog_list.html | 63 |
1 files changed, 45 insertions, 18 deletions
diff --git a/97suifangqa/templates/sciblog/blog_list.html b/97suifangqa/templates/sciblog/blog_list.html index e1eb542..ad5d069 100644 --- a/97suifangqa/templates/sciblog/blog_list.html +++ b/97suifangqa/templates/sciblog/blog_list.html @@ -14,10 +14,10 @@ <div class="hover-overlay"> <div class="region-wrap"> <div class="user-info"> - <h3>用户姓名</h3> + <h3>{{ user.username }}</h3> </div> <div class="search-history"> - <h3>搜索历史</h3> + <h3>搜索记录</h3> <ul> {% for search in search_history %} <li><a href="{% url query_blogs %}?q={{ search }}">{{ search }}</a></li> @@ -25,7 +25,7 @@ </ul> </div> <div class="related-questions"> - <h3>相关问题</h3> + <h3>您可能对一下问题也感兴趣</h3> <ul> {% for query in questions%} <li> @@ -34,38 +34,59 @@ {% endfor %} </ul> </div> + <div class="search-history"> + <h3><a href="{% url blog_collection %}" target="_blank">我的收藏</a></h3> + + </div> + </div> </div> {% endblock %} {% block body %} <section id="blog-list-top-nav"> {% include "login-menu.inc.html" %} - <nav class="search-type-nav"> - <ul class="links inline"> - <li class="first-level"><a href="" class="{% if tab == 'list' %}active{% endif %}">搜索结果</a></li> - <!--li class="first-level"><a href="">术语</a></li--> - <li class="first-level"><a href="{% url blog_collection %}" class="{% if tab == 'collection' %}active{% endif %}">我的收藏</a></li> - </ul> - </nav> + </section> <section id="blog-list-content"> - <h2 class="section-name">专业术语</h2> - {% for noun in ppnouns %} + + <div style="margin-top:-25px;"> + <div style="width:630px;height:1px;margin:40px 0 -3px 0;padding:0px;background-color:#b3b3b1;overflow:hidden;"></div> + <h2 class="section-name" style="color:#a8a8a8;font-weight:normal;">术语科普</h2> + <div style="width:630px;height:1px;margin:2px 0 30px 0;padding:0px;background-color:#b3b3b1;overflow:hidden;"></div> + </div> + + {% for noun in ppnouns %} <ul class="articles"> <li class="article"> <div class="article-title"><!--a href=""-->{{noun.firstkeyword }}<!--/a--></div> <div class="excerpt"> - {{ noun.firstparagraph }} + {{ noun.detail|safe }} </div> </li> + <div style="width:630px;height:1px;margin:20px 0 35px 0;padding:0px;background-color:#f2f2f0;overflow:hidden;"></div> {% endfor %} </ul> - <h2 class="section-name">医学文章</h2> + + + + + + <div style="width:630px;height:1px;margin:-41px 0 40px 0;padding:0px;background-color:#fff;overflow:hidden;"></div> + <!--div style="width:150px;border:1px solid #d5d5d5;margin:-21px auto 40px auto;padding:0px;overflow:hidden;"></div--> + + <div style="margin-top:-35px;"> + <div style="width:630px;height:1px;margin-bottom:-5px;padding:0px;background-color:#b3b3b1;overflow:hidden;"></div> + <h2 class="section-name" style="color:#a8a8a8;font-weight:normal;margin-bottom:5px;">临床治疗经验</h2> + <div style="width:630px;height:1px;margin:0 0 30px 0;padding:0px;background-color:#b3b3b1;overflow:hidden;"></div> + </div> + + + {% if has_blogs %} <div class="articles"> {% for blog in blogs %} <div class="article"> - <div class="article-title"><a href="{% url blog_detail blog.id %}">{{ blog.subhead }}</a></div> + <div class="article-title"><a href="{% url blog_detail blog.id %}" target="_blank">{{ blog.subhead|safe }}</a></div> <ul class="article-subtitles inline"> <!--li> <span>难度:</span> @@ -92,22 +113,28 @@ {% endfor %} </ul> </li--> - <li> <span>杂志:</span><span>{{ blog.journal }}</span></li> + <li> <span>杂志:</span><span>{{ blog.journal|safe }}</span></li> <li> <span>作者:</span><span>{{ blog.communication_author }}</span></li> </ul> <br /> <div class="excerpt"> {{ blog.conclusion|safe }} </div> + <div style="width:630px;height:1px;margin:40px 0 20px 0;padding:0px;background-color:#f2f2f0;overflow:hidden;"></div> </div> {% endfor %} </div> {% else %} - <div class="not-found"> + <div class="not-found" style="margin-bottom:50px;"> <img src="{% static "images/blog-not-found.png" %}" alt=""> - <div class="message">没有搜索到{% if tab == 'list'%}文章{% else %}收藏{% endif %}</div> + <div class="message">{% if tab == 'list'%}没有搜索到匹配的{% else %}暂时未收藏{% endif %}医学文章</div> </div> {% endif %} + + + + + </section> {% endblock %} |