journal.html
92 lines
| 3.4 KiB
| text/html
|
HtmlLexer
r734 | ## -*- coding: utf-8 -*- | |||
<%inherit file="base/base.html"/> | ||||
<%def name="title()"> | ||||
${_('Journal')} - ${c.rhodecode_name} | ||||
</%def> | ||||
<%def name="breadcrumbs()"> | ||||
${c.rhodecode_name} | ||||
</%def> | ||||
<%def name="page_nav()"> | ||||
${self.menu('home')} | ||||
</%def> | ||||
<%def name="main()"> | ||||
<div class="box box-left"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
<h5>${_('Journal')}</h5> | ||||
</div> | ||||
<div> | ||||
%if c.journal: | ||||
%for entry in c.journal: | ||||
<div style="padding:10px"> | ||||
<div class="gravatar"> | ||||
<img alt="gravatar" src="${h.gravatar_url(entry.user.email)}"/> | ||||
</div> | ||||
<div>${entry.user.name} ${entry.user.lastname}</div> | ||||
r808 | <div style="padding-left: 45px;padding-top:5px;min-height:20px">${h.action_parser(entry)}</div> | |||
<div style="float: left; padding-top: 8px;padding-left:18px"> | ||||
${h.action_parser_icon(entry)} | ||||
</div> | ||||
<div style="margin-left: 45px;padding-top: 10px"> | ||||
<span style="font-weight: bold;font-size: 1.1em"> | ||||
r734 | %if entry.repository: | |||
${h.link_to(entry.repository.repo_name, | ||||
h.url('summary_home',repo_name=entry.repository.repo_name))} | ||||
%else: | ||||
${entry.repository_name} | ||||
%endif | ||||
r808 | </span> - <span title="${entry.action_date}">${h.age(entry.action_date)}</span> | |||
r734 | </div> | |||
</div> | ||||
<div style="clear:both;border-bottom:1px dashed #DDD;padding:3px 3px;margin:0px 10px 0px 10px"></div> | ||||
%endfor | ||||
%else: | ||||
${_('No entries yet')} | ||||
%endif | ||||
</div> | ||||
</div> | ||||
<div class="box box-right"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
<h5>${_('Following')}</h5> | ||||
</div> | ||||
<div> | ||||
%if c.following: | ||||
%for entry in c.following: | ||||
r737 | <div class="currently_following"> | |||
r734 | %if entry.follows_user_id: | |||
r737 | <img title="${_('following user')}" alt="${_('user')}" src="/images/icons/user.png"/> | |||
${entry.follows_user.full_contact} | ||||
r734 | %endif | |||
%if entry.follows_repo_id: | ||||
%if entry.follows_repository.private: | ||||
r737 | <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="/images/icons/lock.png"/> | |||
r734 | %else: | |||
r737 | <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="/images/icons/lock_open.png"/> | |||
r734 | %endif | |||
${h.link_to(entry.follows_repository.repo_name,h.url('summary_home', | ||||
repo_name=entry.follows_repository.repo_name))} | ||||
%endif | ||||
</div> | ||||
%endfor | ||||
%else: | ||||
${_('You are not following any users or repositories')} | ||||
%endif | ||||
</div> | ||||
</div> | ||||
r808 | ||||
<script type="text/javascript"> | ||||
YUE.on(YUD.getElementsByClassName('show_more'),'click',function(e){ | ||||
var el = e.target; | ||||
YUD.setStyle(YUD.get(el.id.substring(1)),'display',''); | ||||
YUD.setStyle(el.parentNode,'display','none'); | ||||
}); | ||||
</script> | ||||
r734 | </%def> | |||