diff --git a/application/views/home.xhtml b/application/views/home.xhtml index 40df08569bd23ace86d2759c3e393cc225145593..e40c742e010d030b8b4ee45ff5e9099483bd5a6b 100755 --- a/application/views/home.xhtml +++ b/application/views/home.xhtml @@ -196,12 +196,26 @@ } ?> </td> <td> - <a href="/Request/View/<?php echo $request->getPrimaryKey(); ?>">View</a> + <?php + $lastViewTime = RequestViewTimes::getInstance()->getViewTimeForUserAndRequest($this->user, $request); + if ($lastViewTime instanceof Nmc_Date_Null) { + $linkClass = 'Viewed'; + } else { + $linkClass = 'New'; + } + ?> + <a class="requestLink<?php echo $linkClass; ?>" + href="/Request/View/<?php echo $request->getPrimaryKey(); ?>"> + View + </a> / - <a href="/Request/Load/<?php echo $request->getPrimaryKey(); ?>">Edit</a> </td> + <a class="requestLink<?php echo $linkClass; ?>" + href="/Request/Load/<?php echo $request->getPrimaryKey(); ?>"> + Edit + </a> + </td> <td> <?php - $lastViewTime = RequestViewTimes::getInstance()->getViewTimeForUserAndRequest($this->user, $request); $newCommentCount = RequestComments::getInstance()->fetchWithRequestAndAfterTime($request, $lastViewTime)->count(); if ($newCommentCount > 0) { ?> diff --git a/document_root/css/home.oss b/document_root/css/home.oss index e79c6c80cb9c9feed442ba635344e7094c633a7e..aa6f8695451b4a92ce3abe0aa04a77fbd4c77b0f 100755 --- a/document_root/css/home.oss +++ b/document_root/css/home.oss @@ -4,4 +4,8 @@ width: 700px; } + .requestLinkNew { + color: #f00; + } + } \ No newline at end of file