##// END OF EJS Templates
pull requests throw an error if parent of fork didn't have any changesets yet. Now it's filter out from list of available sources
pull requests throw an error if parent of fork didn't have any changesets yet. Now it's filter out from list of available sources

File last commit:

r2776:63e58ef8 merge default
r2933:07d620f6 beta
Show More
journal.html
229 lines | 9.8 KiB | text/html | HtmlLexer
fixes for journal, added paging now it's possible to view whole journal...
r995 ## -*- 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>
added discoverable rss/atom links in pages
r2413 <%def name="head_extra()">
<link href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('ATOM journal feed')}" type="application/atom+xml" />
<link href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('RSS journal feed')}" type="application/rss+xml" />
</%def>
fixes for journal, added paging now it's possible to view whole journal...
r995 <%def name="main()">
White-space cleanup
r1888
fixes for journal, added paging now it's possible to view whole journal...
r995 <div class="box box-left">
<!-- box / title -->
<div class="title">
<h5>${_('Journal')}</h5>
Journal refresh button
r1746 <ul class="links">
<li>
added rss/atom feeds into personalized journal
r2397 <span><a id="refresh" href="${h.url('journal')}"><img class="icon" title="${_('Refresh')}" alt="${_('Refresh')}" src="${h.url('/images/icons/arrow_refresh.png')}"/></a></span>
White-space cleanup
r1888 </li>
added rss/atom feeds into personalized journal
r2397 <li>
fix feed icon mistake
r2412 <span><a href="${h.url('journal_rss', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('RSS feed')}" alt="${_('RSS feed')}" src="${h.url('/images/icons/rss_16.png')}"/></a></span>
added rss/atom feeds into personalized journal
r2397 </li>
<li>
added discoverable rss/atom links in pages
r2413 <span><a href="${h.url('journal_atom', api_key=c.rhodecode_user.api_key)}"><img class="icon" title="${_('ATOM feed')}" alt="${_('ATOM feed')}" src="${h.url('/images/icons/atom.png')}"/></a></span>
whitespace cleanup
r2409 </li>
White-space cleanup
r1888 </ul>
</div>
fixes for journal, added paging now it's possible to view whole journal...
r995 <div id="journal">${c.journal_data}</div>
</div>
<div class="box box-right">
<!-- box / title -->
<div class="title">
White-space cleanup
r1888 <h5>
<input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/>
Implements #304...
r1770 <a id="show_my" class="link-white" href="#my">${_('My repos')}</a> / <a id="show_watched" class="link-white" href="#watched">${_('Watched')}</a>
personal Journal UI...
r1741 </h5>
%if h.HasPermissionAny('hg.admin','hg.create.repository')():
<ul class="links">
<li>
Implements #304...
r1770 <span>${h.link_to(_('ADD'),h.url('admin_settings_create_repository'))}</span>
White-space cleanup
r1888 </li>
</ul>
%endif
personal Journal UI...
r1741 </div>
<!-- end box / title -->
<div id="my" class="table">
Journal refresh button
r1746 %if c.user_repos:
Added sorting into journal and admin pages...
r1779 <div id='repos_list_wrap' class="yui-skin-sam">
<table id="repos_list">
<thead>
<tr>
<th></th>
<th class="left">${_('Name')}</th>
implemented #377 Users view own permissions...
r2127 <th class="left">${_('Revision')}</th>
Added sorting into journal and admin pages...
r1779 <th class="left">${_('Action')}</th>
White-space cleanup
r1888 <th class="left">${_('Action')}</th>
Added sorting into journal and admin pages...
r1779 </thead>
personal Journal UI...
r1741 <tbody>
Vincent Duvert
Renaming template directory _data_table to data_table so it can be scanned by extract_messages
r2304 <%namespace name="dt" file="/data_table/_dt_elements.html"/>
personal Journal UI...
r1741 %for repo in c.user_repos:
<tr>
Added sorting into journal and admin pages...
r1779 ##QUICK MENU
<td class="quick_repo_menu">
${dt.quick_menu(repo['name'])}
</td>
##REPO NAME AND ICONS
<td class="reponame">
${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))}
</td>
##LAST REVISION
personal Journal UI...
r1741 <td>
White-space cleanup
r1888 ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])}
Added sorting into journal and admin pages...
r1779 </td>
##
personal Journal UI...
r1741 <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td>
<td>
${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')}
Takumi IINO
i18n
r2598 ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")}
White-space cleanup
r1888 ${h.end_form()}
personal Journal UI...
r1741 </td>
</tr>
%endfor
Journal refresh button
r1746 </tbody>
</table>
Added sorting into journal and admin pages...
r1779 </div>
personal Journal UI...
r1741 %else:
<div style="padding:5px 0px 10px 0px;">
White-space cleanup
r1888 ${_('No repositories yet')}
personal Journal UI...
r1741 %if h.HasPermissionAny('hg.admin','hg.create.repository')():
UI !
r1756 ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")}
personal Journal UI...
r1741 %endif
</div>
White-space cleanup
r1888 %endif
fixes for journal, added paging now it's possible to view whole journal...
r995 </div>
White-space cleanup
r1888
personal Journal UI...
r1741 <div id="watched" class="table" style="display:none">
%if c.following:
Journal refresh button
r1746 <table>
<thead>
<tr>
<th class="left">${_('Name')}</th>
</thead>
<tbody>
%for entry in c.following:
<tr>
<td>
personal Journal UI...
r1741 %if entry.follows_user_id:
<img title="${_('following user')}" alt="${_('user')}" src="${h.url('/images/icons/user.png')}"/>
${entry.follows_user.full_contact}
%endif
White-space cleanup
r1888
personal Journal UI...
r1741 %if entry.follows_repo_id:
<div style="float:right;padding-right:5px">
<span id="follow_toggle_${entry.follows_repository.repo_id}" class="following" title="${_('Stop following this repository')}"
onclick="javascript:toggleFollowingRepo(this,${entry.follows_repository.repo_id},'${str(h.get_token())}')">
White-space cleanup
r1888 </span>
personal Journal UI...
r1741 </div>
White-space cleanup
r1888
optimized speed for browsing git changesets
r1959 %if h.is_hg(entry.follows_repository):
personal Journal UI...
r1741 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
optimized speed for browsing git changesets
r1959 %elif h.is_git(entry.follows_repository):
personal Journal UI...
r1741 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
White-space cleanup
r1888 %endif
merged + fixed pull request #62: Implemented metatags and visualisation options....
r2674 %if entry.follows_repository.private and c.visual.show_private_icon:
personal Journal UI...
r1741 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
merged + fixed pull request #62: Implemented metatags and visualisation options....
r2674 %elif not entry.follows_repository.private and c.visual.show_public_icon:
personal Journal UI...
r1741 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
%endif
<span class="watched_repo">
${h.link_to(entry.follows_repository.repo_name,h.url('summary_home',repo_name=entry.follows_repository.repo_name))}
</span>
%endif
Journal refresh button
r1746 </td>
</tr>
%endfor
</tbody>
</table>
personal Journal UI...
r1741 %else:
Journal refresh button
r1746 <div style="padding:5px 0px 10px 0px;">
personal Journal UI...
r1741 ${_('You are not following any users or repositories')}
Journal refresh button
r1746 </div>
White-space cleanup
r1888 %endif
</div>
Journal refresh button
r1746 </div>
White-space cleanup
r1888
personal Journal UI...
r1741 <script type="text/javascript">
White-space cleanup
r1888
personal Journal UI...
r1741 YUE.on('show_my','click',function(e){
YUD.setStyle('watched','display','none');
YUD.setStyle('my','display','');
var nodes = YUQ('#my tr td a.repo_name');
var target = 'q_filter';
var func = function(node){
Added sorting into journal and admin pages...
r1779 return node.parentNode.parentNode.parentNode.parentNode;
White-space cleanup
r1888 }
q_filter(target,nodes,func);
personal Journal UI...
r1741 YUE.preventDefault(e);
})
YUE.on('show_watched','click',function(e){
YUD.setStyle('my','display','none');
YUD.setStyle('watched','display','');
var nodes = YUQ('#watched .watched_repo a');
var target = 'q_filter';
var func = function(node){
return node.parentNode.parentNode;
}
White-space cleanup
r1888 q_filter(target,nodes,func);
YUE.preventDefault(e);
personal Journal UI...
r1741 })
Journal refresh button
r1746 YUE.on('refresh','click',function(e){
implements #135 bookmark support for UI
r1748 ypjax(e.currentTarget.href,"journal",function(){show_more_event();tooltip_activate();});
Journal refresh button
r1746 YUE.preventDefault(e);
Added sorting into journal and admin pages...
r1779 });
White-space cleanup
r1888
Added sorting into journal and admin pages...
r1779
// main table sorting
var myColumnDefs = [
{key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
{key:"name",label:"${_('Name')}",sortable:true,
sortOptions: { sortFunction: nameSort }},
{key:"tip",label:"${_('Tip')}",sortable:true,
sortOptions: { sortFunction: revisionSort }},
{key:"action1",label:"",sortable:false},
{key:"action2",label:"",sortable:false},
];
var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list"));
White-space cleanup
r1888
Added sorting into journal and admin pages...
r1779 myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE;
White-space cleanup
r1888
Added sorting into journal and admin pages...
r1779 myDataSource.responseSchema = {
fields: [
{key:"menu"},
{key:"name"},
{key:"tip"},
{key:"action1"},
{key:"action2"}
]
};
var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,
{
Translations fixes for Data table
r1780 sortedBy:{key:"name",dir:"asc"},
MSG_SORTASC:"${_('Click to sort ascending')}",
MSG_SORTDESC:"${_('Click to sort descending')}",
MSG_EMPTY:"${_('No records found.')}",
MSG_ERROR:"${_('Data error.')}",
White-space cleanup
r1888 MSG_LOADING:"${_('Loading...')}",
Added sorting into journal and admin pages...
r1779 }
);
myDataTable.subscribe('postRenderEvent',function(oArgs) {
tooltip_activate();
quick_repo_menu();
var func = function(node){
return node.parentNode.parentNode.parentNode.parentNode;
White-space cleanup
r1888 }
Added sorting into journal and admin pages...
r1779 q_filter('q_filter',YUQ('#my tr td a.repo_name'),func);
White-space cleanup
r1888 });
</script>
</%def>