##// END OF EJS Templates
summary: use shared changelog_table implementation on summary page...
domruf -
r6774:f92d0806 default
parent child Browse files
Show More
@@ -1,4 +1,5 b''
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.html"/>
2 <%namespace name="changelog_table" file="/changelog/changelog_table.html"/>
2
3
3 <%block name="title">
4 <%block name="title">
4 ${_('%s Summary') % c.repo_name}
5 ${_('%s Summary') % c.repo_name}
@@ -179,7 +180,37 b''
179 </div>
180 </div>
180 <div class="panel-body">
181 <div class="panel-body">
181 <div id="shortlog_data">
182 <div id="shortlog_data">
182 <%include file='../changelog/changelog_summary_data.html'/>
183 %if c.cs_pagination:
184 ${changelog_table.changelog(c.repo_name, c.cs_pagination, c.cs_statuses, c.cs_comments, show_checkbox=False)}
185 ${c.cs_pagination.pager()}
186 %else:
187 %if h.HasRepoPermissionLevel('write')(c.repo_name):
188 <h4>${_('Add or upload files directly via Kallithea')}</h4>
189 <div>
190 <div id="add_node_id" class="add_node">
191 <a class="btn btn-default btn-xs" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='', anchor='edit')}">${_('Add New File')}</a>
192 </div>
193 </div>
194 %endif
195
196 <h4>${_('Push new repository')}</h4>
197 <pre>
198 ${c.db_repo_scm_instance.alias} clone ${c.clone_repo_url}
199 ${c.db_repo_scm_instance.alias} add README # add first file
200 ${c.db_repo_scm_instance.alias} commit -m "Initial" # commit with message
201 ${c.db_repo_scm_instance.alias} push ${'origin master' if h.is_git(c.db_repo_scm_instance) else ''} # push changes back
202 </pre>
203
204 <h4>${_('Existing repository?')}</h4>
205 <pre>
206 %if h.is_git(c.db_repo_scm_instance):
207 git remote add origin ${c.clone_repo_url}
208 git push -u origin master
209 %else:
210 hg push ${c.clone_repo_url}
211 %endif
212 </pre>
213 %endif
183 </div>
214 </div>
184 </div>
215 </div>
185 </div>
216 </div>
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now