Permalink
Browse files

show username and package version of comments

  • Loading branch information...
1 parent 0eece45 commit 6ec4cd3dcc5333d6df7ef59b9333f224d477097a @reneeb committed Oct 5, 2012
Showing with 6 additions and 1 deletion.
  1. +2 −0 lib/OTRS/OPR/DAO/Package.pm
  2. +4 −1 templates/index_package.tmpl
@@ -144,6 +144,8 @@ sub comments {
push @comments, {
#'WEBSITE' => $comment->website,
'DATE' => time_to_date( $self, $comment->published ),
+ 'USERNAME' => $comment->username,
+ 'VERSION' => $comment->packageversion,
'SCORE' => $comment->rating,
'COMMENT' => $comment->comments,
'COMMENT_ID' => $comment->comment_id,
@@ -75,18 +75,21 @@
<section id="comments">
<%LOOP COMMENTS %>
+ <%IF IS_PUBLISHED %>
<div>
<div>
<h2>
- <a href="<%= WEBSITE %>">Mr. Y</a>
+ <a href="<%= WEBSITE %>"><%= USERNAME %></a>
<span>on <%= DATE %></span>
+ <span>about version <%= VERSION %></span>
<div><span class="score-<%= SCORE %>"></span></div>
</h2>
<p>
<%= COMMENT %>
</p>
</div>
</div>
+ <%/IF %>
<%/LOOP %>
</section>
<%/IF %>

0 comments on commit 6ec4cd3

Please sign in to comment.