PageRenderTime 19ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/ShowMeTheBestReply/grails-app/views/news/article.gsp

http://showmethebestreply.googlecode.com/
Unknown | 41 lines | 37 code | 4 blank | 0 comment | 0 complexity | e86b9b554a8120bea3182d6d34d22e96 MD5 | raw file
 1<html>
 2    <head>
 3        <title>${article.title} - Nate News Mobile</title>
 4		<meta name="layout" content="news" />
 5		<g:javascript library="jquery"/>
 6    </head>
 7    <body>
 8        <h2>
 9        	${article.title}
10        </h2>
11        
12        <div id="news_content">
13        	<p>${article.content}</p>
14        	<p><a href="http://news.nate.com/view/${article.articleId}">?? ??</a></p>
15        </div>
16        
17        <br />
18        
19        <g:if test="${listOfBeple}">
20	        <h3>??</h3>
21        </g:if>
22    	<g:each var="beple" in="${listOfBeple}">
23        	<div class="replyBar"></div>
24        	<p> <img src="${resource(dir:'images',file:'ico_beple.gif')}" />
25        		<b>${beple.username}</b><br />
26        		${beple.content}<br />
27        		??:${beple.countOfGood},??:${beple.countOfBad} (${beple.dateCreated.format('MM.dd hh:mm')})
28        	</p>
29        </g:each>
30        <div class="replyBar"></div>
31        <br />
32        
33        <!-- ??? ??? ThumbnailImage / OriginalImage ? ?? -->
34        <g:javascript>
35	    	$(".thumbnailImage").click( function() {
36	        	var imageLinkTag = '<img src="' + $("img", this).attr("origImageLinkUrl") + '" origImageLinkUrl="' + $("img", this).attr("src") + '" />';
37	        	$(this).html(imageLinkTag);
38	        });
39		</g:javascript>
40    </body>
41</html>