##// END OF EJS Templates
Added quick menu for each repo in main page.
marcink -
r1423:241a5167 beta
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
1 NO CONTENT: new file 100644, binary diff hidden
@@ -370,7 +370,6 border-right:1px solid #464646;
370 370 background:url("../images/quick_l_selected.png") no-repeat top left;
371 371 }
372 372
373
374 373 #header #header-inner #quick ul {
375 374 top:29px;
376 375 right:0;
@@ -562,6 +561,33 margin:0;
562 561 padding:12px 9px 7px 24px;
563 562 }
564 563
564
565 .quick_repo_menu{
566 background: #FFF url("../images/vertical-indicator.png") 6px 9px no-repeat !important;
567 cursor: pointer;
568 }
569 .quick_repo_menu.active{
570 background: #FFF url("../images/horizontal-indicator.png") 4px 9px no-repeat !important;
571 cursor: pointer;
572 }
573 .quick_repo_menu .menu_items{
574 margin-top:6px;
575 position: absolute;
576 background-color:#FFF;
577 padding: 4px;
578 background: none repeat scroll 0 0 #FFFFFF;
579 border-color: #003367 #666666 #666666;
580 border-right: 1px solid #666666;
581 border-style: solid;
582 border-width: 1px;
583 }
584 .quick_repo_menu .menu_items .icon img{
585 margin-bottom:-2px;
586 }
587 .quick_repo_menu .menu_items.hidden{
588 display: none;
589 }
590
565 591 #content #left {
566 592 left:0;
567 593 width:280px;
@@ -169,7 +169,6
169 169 }
170 170 if (req){
171 171 for (n in nodes){
172 console.log(n);
173 172 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
174 173 obsolete.push(nodes[n]);
175 174 }
@@ -116,7 +116,19
116 116 YUE.preventDefault(e);
117 117 });
118 118
119 tooltip_activate()
119 tooltip_activate();
120
121 YUE.on(YUQ('.quick_repo_menu'),'click',function(e){
122 var menu = e.currentTarget.firstElementChild;
123 if(YUD.hasClass(menu,'hidden')){
124 YUD.addClass(e.currentTarget,'active');
125 YUD.removeClass(menu,'hidden');
126 }else{
127 YUD.removeClass(e.currentTarget,'active');
128 YUD.addClass(menu,'hidden');
129 }
130 })
131
120 132 })
121 133 </script>
122 134
@@ -66,6 +66,7
66 66 <table>
67 67 <thead>
68 68 <tr>
69 <th class="left"></th>
69 70 <th class="left">${get_sort(_('Name'))}</th>
70 71 <th class="left">${get_sort(_('Description'))}</th>
71 72 <th class="left">${get_sort(_('Last change'))}</th>
@@ -78,22 +79,48
78 79 <tbody>
79 80 %for cnt,repo in enumerate(c.repos_list):
80 81 <tr class="parity${cnt%2}">
82 <td class="quick_repo_menu inactive">
83 <ul class="menu_items hidden">
84 <li>
85 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=repo['name'])}">
86 <span class="icon">
87 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" />
88 </span>
89 <span>${_('Summary')}</span>
90 </a>
91 </li>
92 <li>
93 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=repo['name'])}">
94 <span class="icon">
95 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" />
96 </span>
97 <span>${_('Changelog')}</span>
98 </a>
99 </li>
100 <li>
101 <a title="${_('Files')}" href="${h.url('files_home',repo_name=repo['name'])}">
102 <span class="icon">
103 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" />
104 </span>
105 <span>${_('Files')}</span>
106 </a>
107 </li>
108 </ul>
109 </td>
81 110 <td>
111 ## TYPE OF REPO
82 112 <div style="white-space: nowrap">
83 ## TYPE OF REPO
84 113 %if repo['dbrepo']['repo_type'] =='hg':
85 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url("/images/icons/hgicon.png")}"/>
114 <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
86 115 %elif repo['dbrepo']['repo_type'] =='git':
87 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url("/images/icons/giticon.png")}"/>
88 %else:
89
116 <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
90 117 %endif
91 118
92 119 ##PRIVATE/PUBLIC
93 120 %if repo['dbrepo']['private']:
94 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url("/images/icons/lock.png")}"/>
121 <img class="icon" title="${_('private repository')}" alt="${_('private repository')}" src="${h.url('/images/icons/lock.png')}"/>
95 122 %else:
96 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url("/images/icons/lock_open.png")}"/>
123 <img class="icon" title="${_('public repository')}" alt="${_('public repository')}" src="${h.url('/images/icons/lock_open.png')}"/>
97 124 %endif
98 125
99 126 ##NAME
@@ -103,7 +130,7
103 130 <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}">
104 131 <img class="icon" alt="${_('fork')}"
105 132 title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}"
106 src="${h.url("/images/icons/arrow_divide.png")}"/></a>
133 src="${h.url('/images/icons/arrow_divide.png')}"/></a>
107 134 %endif
108 135 </div>
109 136 </td>
General Comments 0
You need to be logged in to leave comments. Login now