Changeset - 14d8cfb96c17
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2012-02-25 16:10:06
marcin@python-works.com
urlify the commit message in file block + small css fixes
2 files changed with 14 insertions and 8 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/css/pygments.css
Show inline comments
 
@@ -16,26 +16,32 @@ div.codeblock .code-header{
 
	background: #EEEEEE;
 
	padding:10px 0 10px 0;
 
}
 

	
 
div.codeblock .code-header .stats{
 
	clear: both;
 
	margin-top:-3px; 
 
	padding-left: 8px; 
 
	border-bottom: 1px solid rgb(204, 204, 204); 
 
	margin-bottom: 5px; height: 23px;
 
	padding: 6px 8px 6px 10px; 
 
	border-bottom: 1px solid rgb(204, 204, 204);  
 
	height: 23px;
 
	margin-bottom: 6px;
 
}
 

	
 
div.codeblock .code-header .stats .left{
 
	float:left;
 
}
 
div.codeblock .code-header .stats .left.img{
 
	margin-top:-2px;
 
}
 
div.codeblock .code-header .stats .left.item{
 
	float:left;
 
	padding: 0 9px 0 9px;
 
	border-right:1px solid #ccc;
 
}
 
div.codeblock .code-header .stats .left.item pre{
 
	
 
}
 
div.codeblock .code-header .stats .left.item.last{
 
	border-right:none;
 
}
 
div.codeblock .code-header .stats .buttons{
 
	float:right;
 
	padding-right:4px;
rhodecode/templates/files/files_source.html
Show inline comments
 
@@ -12,16 +12,16 @@
 
	</dd>
 
</dl>
 

	
 
<div id="body" class="codeblock">
 
	<div class="code-header">
 
        <div class="stats">
 
            <div class="left"><img src="${h.url('/images/icons/file.png')}"/></div>
 
            <div class="left img"><img src="${h.url('/images/icons/file.png')}"/></div>
 
            <div class="left item"><pre>${h.link_to("r%s:%s" % (c.file.last_changeset.revision,h.short_id(c.file.last_changeset.raw_id)),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id))}</pre></div>
 
            <div class="left item">${h.format_byte_size(c.file.size,binary=True)}</div>
 
            <div class="left item last">${c.file.mimetype}</div>
 
            <div class="left item"><pre>${h.format_byte_size(c.file.size,binary=True)}</pre></div>
 
            <div class="left item last"><pre>${c.file.mimetype}</pre></div>
 
            <div class="buttons">
 
              ${h.link_to(_('show annotation'),h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
 
              ${h.link_to(_('show as raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
 
              ${h.link_to(_('download as raw'),h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.file.last_changeset.raw_id,f_path=c.f_path),class_="ui-btn")}
 
              % if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
 
               % if not c.file.is_binary:
 
@@ -33,13 +33,13 @@
 
        <div class="author">
 
            <div class="gravatar">
 
                <img alt="gravatar" src="${h.gravatar_url(h.email(c.file.last_changeset.author),16)}"/>
 
            </div>
 
            <div title="${c.file.last_changeset.author}" class="user">${h.person(c.file.last_changeset.author)}</div>
 
        </div>
 
		<div class="commit">${c.file.last_changeset.message}</div>
 
		<div class="commit">${h.urlify_commit(c.file.last_changeset.message,c.repo_name)}</div>
 
	</div>
 
	<div class="code-body">
 
	   %if c.file.is_binary:
 
	       ${_('Binary file (%s)') % c.file.mimetype}
 
	   %else:
 
		% if c.file.size < c.cut_off_limit:
0 comments (0 inline, 0 general)