• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account Log out
  • Favorite
  • Project
  • Recent History
Loading...
  • Log in
  • Sign up
kadrians / Testing_for_YONA star
  • Project homeH
  • CodeC
  • IssueI 1
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB 2
  • Files
  • Commit
  • Branches
Testing_for_YONAsourceappviewsindexpartial_notifications.scala.html
Download as .zip file
File name
Commit message
Commit date
bin
Yona 1.16.0 Upload
02-04
lib
Yona 1.16.0 Upload
02-04
share/doc/api
Yona 1.16.0 Upload
02-04
source
Source Code Upload
02-04
README.md
Yona 1.16.0 Upload
02-04
File name
Commit message
Commit date
app
Source Code Upload
02-04
conf
Source Code Upload
02-04
docs
Source Code Upload
02-04
lib
Source Code Upload
02-04
project
Source Code Upload
02-04
public
Source Code Upload
02-04
support-script
Source Code Upload
02-04
test
Source Code Upload
02-04
.gitignore
Source Code Upload
02-04
.mailmap
Source Code Upload
02-04
.travis.yml
Source Code Upload
02-04
AUTHORS
Source Code Upload
02-04
LICENSE
Source Code Upload
02-04
NOTICE
Source Code Upload
02-04
README.md
Source Code Upload
02-04
build.sbt
Source Code Upload
02-04
dev.sh
Source Code Upload
02-04
dist.sh
Source Code Upload
02-04
is-alive-bot.sh
Source Code Upload
02-04
minify-js.sh
Source Code Upload
02-04
restart.sh
Source Code Upload
02-04
File name
Commit message
Commit date
actions
Source Code Upload
02-04
actors
Source Code Upload
02-04
assets/stylesheets
Source Code Upload
02-04
controllers
Source Code Upload
02-04
data
Source Code Upload
02-04
errors
Source Code Upload
02-04
mailbox
Source Code Upload
02-04
models
Source Code Upload
02-04
notification
Source Code Upload
02-04
playRepository
Source Code Upload
02-04
service
Source Code Upload
02-04
utils
Source Code Upload
02-04
validation
Source Code Upload
02-04
views
Source Code Upload
02-04
Global.java
Source Code Upload
02-04
File name
Commit message
Commit date
board
Source Code Upload
02-04
code
Source Code Upload
02-04
common
Source Code Upload
02-04
error
Source Code Upload
02-04
git
Source Code Upload
02-04
help
Source Code Upload
02-04
index
Source Code Upload
02-04
issue
Source Code Upload
02-04
migration
Source Code Upload
02-04
milestone
Source Code Upload
02-04
organization
Source Code Upload
02-04
project
Source Code Upload
02-04
reviewthread
Source Code Upload
02-04
search
Source Code Upload
02-04
site
Source Code Upload
02-04
user
Source Code Upload
02-04
welcome
Source Code Upload
02-04
layout.scala.html
Source Code Upload
02-04
layout_framed.scala.html
Source Code Upload
02-04
organizationLayout.scala.html
Source Code Upload
02-04
partial_comment_form_on_thread.scala.html
Source Code Upload
02-04
partial_comment_thread.scala.html
Source Code Upload
02-04
partial_diff.scala.html
Source Code Upload
02-04
partial_diff_comment_on_line.scala.html
Source Code Upload
02-04
partial_diff_line.scala.html
Source Code Upload
02-04
partial_filediff.scala.html
Source Code Upload
02-04
partial_update_notification.scala.html
Source Code Upload
02-04
projectLayout.scala.html
Source Code Upload
02-04
projectMenu.scala.html
Source Code Upload
02-04
restricted.scala.html
Source Code Upload
02-04
sidebar.scala.html
Source Code Upload
02-04
siteLayout.scala.html
Source Code Upload
02-04
siteLayout_framed.scala.html
Source Code Upload
02-04
File name
Commit message
Commit date
allOrganizationList.scala.html
Source Code Upload
02-04
allOrganizationList_partial.scala.html
Source Code Upload
02-04
allProjectList.scala.html
Source Code Upload
02-04
allProjectList_partial.scala.html
Source Code Upload
02-04
displayProjects.scala.html
Source Code Upload
02-04
index.scala.html
Source Code Upload
02-04
myOrganizationList.scala.html
Source Code Upload
02-04
myOrganizationList_partial.scala.html
Source Code Upload
02-04
myProjectList.scala.html
Source Code Upload
02-04
myProjectList_partial.scala.html
Source Code Upload
02-04
myRecentIssueList.scala.html
Source Code Upload
02-04
myRecentIssueList_partial.scala.html
Source Code Upload
02-04
notifications.scala.html
Source Code Upload
02-04
partial_intro.scala.html
Source Code Upload
02-04
partial_notifications.scala.html
Source Code Upload
02-04
sidebar.scala.html
Source Code Upload
02-04
Nell 02-04 2600fe6 Source Code Upload UNIX
Raw Open in browser Change history
@** * Yona, 21st Century Project Hosting SW * * Copyright Yona & Yobi Authors & NAVER Corp. * https://yona.io **@ @(from: Integer, size: Integer) @import utils.TemplateHelper._ @import utils.JodaDateUtil @import utils.HtmlUtil @notifycationIcon(notifytype: EventType, state: String) = @{ notifytype match { case EventType.NEW_COMMENT | EventType.NEW_REVIEW_COMMENT | EventType.REVIEW_THREAD_STATE_CHANGED => { "comment2"} case EventType.NEW_ISSUE | EventType.ISSUE_STATE_CHANGED => { if(state=="closed") "list-alt closed" else "list-alt" } case EventType.ISSUE_ASSIGNEE_CHANGED => { "friends changed" } case EventType.NEW_POSTING => { "edit2" } case EventType.NEW_PULL_REQUEST | EventType.PULL_REQUEST_COMMIT_CHANGED | EventType.PULL_REQUEST_STATE_CHANGED => { if(state=="closed") "merge closed" else if(state=="merged") "merge merged" else "merge" } case EventType.MEMBER_ENROLL_REQUEST => { if(state=="ACCEPT") "addfriend closed" else if (state=="CANCEL") "addfriend rejected" else "addfriend" } case EventType.NEW_COMMIT =>{"push"} case EventType.PULL_REQUEST_REVIEW_STATE_CHANGED => {"preview changed"} case EventType.ISSUE_BODY_CHANGED => {"ellipsis-horizontal"} case EventType.COMMENT_UPDATED => {"ellipsis-horizontal"} case _ => {"megaphone"} } } @defining(NotificationEvent.findByReceiver(UserApp.currentUser, from, size)){ notifications => @if(notifications.size == 0){ <div class="warning-none"> <i class="yobicon-danger"></i> @Messages("notification.none") </div> } @for(noti <- notifications){ <li class="notification-stream"> @defining(User.find.byId(noti.senderId)){ user => @if(noti.eventType.equals(EventType.ISSUE_BODY_CHANGED) || noti.eventType.equals(EventType.COMMENT_UPDATED) ){ <div class="stream-type updated"> Edit </div> } else { <div class="stream-type @notifycationIcon(noti.eventType,noti.newValue)"> <i class="yobicon-@notifycationIcon(noti.eventType,noti.newValue)"></i> </div> } <div class="stream-desc" data-target="message-@noti.id" data-toggle="learnmore"> <div class="stream-info"> <div class="title"> @noti.getUrlToView match { case null => { @noti.title } case url => { <a href="@url">@noti.title</a> } } </div> <div class="message-wrap nowrap" id="message-@noti.id"> <div class="message">@Html(HtmlUtil.defaultSanitize(noti.getMessage.replaceAll("(?<!>)\n", "<br/>\n")))</div> </div> <div class="meta"> @if(user != null){ <a class="avatar-wrap smaller" href="@routes.UserApp.userInfo(user.loginId)"> <img src="@user.avatarUrl" > </a> } else { <div class="smaller"> <img src="@routes.Assets.at("images/default-avatar-64.png")" width="42" height="42"> </div> } @if(user != null) { <a href="@routes.UserApp.userInfo(user.loginId)" class="author">@user.getDisplayName</a>@@@user.loginId } <span class="ago pull-right" title="@JodaDateUtil.getDateString(noti.created)"> @agoOrDateString(noti.created) </span> </div> </div> </div> } </li> } } @if(NotificationEvent.findByReceiver(UserApp.currentUser, from, size).size != 0) { <li><a href="javascript:void(0);" id="notification-more" class="ybtn">More</a></li> <script type="text/javascript"> $(document).ready(function(){ function checkOverflow(el) { var curOverflow = el.style.overflow; if (!curOverflow || curOverflow === "visible") el.style.overflow = "hidden"; var isOverflowing = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight; el.style.overflow = curOverflow; return isOverflowing; } $("#notification-more").click(function() { $("#notification-more").remove(); $.get("@routes.NotificationApp.notifications(from + size, size)", function(data) { $('.activity-streams').append(data); $(".more").remove(); $(".message-wrap").each(function(index, value){ var $this = $(this); if(checkOverflow($this[0])){ $this.after("<div class='more'>...</div>"); } }); }); }); }); </script> }

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
login with Google Sign in with Google
Reset password | Sign up