drafts.vm

来自「一个简单的blog系统」· VM 代码 · 共 71 行

VM
71
字号
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU Library General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##
##  drafts view
##
###############################################################################
#parse("/html/_sub/_global.vm")
#select_layout("p_diary.vm")
#set($page_title="草稿箱")
###############################################################################
#set($logs = $DIARY_tool.list_drafts($g_site, $g_user))
#set($g_draft_count=$logs.size())
<div class="page_top">
	<div class="pagecontent">
		<div class="pagecontent_left fleft">
			<b>共有草稿 ${g_draft_count} 篇!</b>
		</div>
		<div class="pagecontent_right fright">
		</div>        
	</div>
	<div class="spacer_1"></div>
</div>
#if($logs && $logs.size()>0)
<div class="page_content">
	<hr size="1" noshade color="#CCCCCC">
    #set($no_bookmark_link = true) ##不显示存为书签的链接
	#set($catalog_id=-1)
    #foreach($log in $logs)
	#set($show_log_url = "$dlog.root()/html/diary/showlog.vm?sid=$g_site_id&amp;log_id=${log.id}")
	<div class="diary">
    	<div class="diary_title">
    		#invoke("_log_title_bar.vm")
    	</div>
    	<div class="diary_content">
			#set($preview_content = ${log.previewContent})
			<div class="diary_preview_content">
    		<p>$preview_content</p>
			</div>
			#if($preview_content.length() < $log.content.length())
    		<div><a href="$show_log_url" class="more">阅读全文...</a></div>
			#end
			#if($dlog.not_empty($log.keyword))
			<div><b>关键字: </b>&nbsp;
				#foreach($tag in $log.keywords)
					<a href="$dlog.root()/html/showtag.vm?sid=$g_site_id&amp;type=1&amp;tag=$link.encodeURL($tag)"><b>${tag}</b></a>&nbsp;&nbsp;
				#end
			</div>
			#end
    	</div>
    	<div class="diary_foot">
    		#invoke("_log_bottom_bar.vm")
    	</div>
	</div>
	<div class="spacer_10"></div>
	<div class="line_dashed"></div>
	#end
</div>
<div class="page_footer"></div>
#end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?