# HG changeset patch # User Marcin Kuzminski # Date 2011-11-27 01:17:17 # Node ID 61eda8bf70d0897f2e51c186fd3bb39f3bffb803 # Parent e2d76554d2c6c5ed59a47dfbf27407c6cb5e592f new files views - compated space - nicer gui - code garden diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -162,9 +162,9 @@ class FilesController(BaseRepoController #files or dirs try: - c.files_list = c.changeset.get_node(f_path) + c.file = c.changeset.get_node(f_path) - if c.files_list.is_file(): + if c.file.is_file(): c.file_history = self._get_node_history(c.changeset, f_path) else: c.file_history = [] diff --git a/rhodecode/public/css/pygments.css b/rhodecode/public/css/pygments.css --- a/rhodecode/public/css/pygments.css +++ b/rhodecode/public/css/pygments.css @@ -7,15 +7,47 @@ div.codeblock { line-height: 100%; /* new */ line-height: 125%; + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; } div.codeblock .code-header{ border-bottom: 1px solid #CCCCCC; background: #EEEEEE; padding:10px 0 10px 0; } -div.codeblock .code-header .revision{ + +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; +} + +div.codeblock .code-header .stats .left{ + float:left; +} +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.last{ + border-right:none; +} +div.codeblock .code-header .stats .buttons{ + float:right; + padding-right:4px; +} + +div.codeblock .code-header .author{ margin-left:25px; font-weight: bold; + height: 25px; +} +div.codeblock .code-header .author .user{ + padding-top:3px; } div.codeblock .code-header .commit{ margin-left:25px; diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css --- a/rhodecode/public/css/style.css +++ b/rhodecode/public/css/style.css @@ -642,20 +642,22 @@ div.options a { } .quick_repo_menu { - background: #FFF url("../images/vertical-indicator.png") 8px 50% - no-repeat !important; + background: #FFF url("../images/vertical-indicator.png") 8px 50% no-repeat !important; cursor: pointer; width: 8px; + border: 1px solid transparent; } .quick_repo_menu.active { - background: #FFF url("../images/horizontal-indicator.png") 4px 50% - no-repeat !important; - cursor: pointer; + background: url("../images/horizontal-indicator.png") no-repeat scroll 5px 50% #FFFFFF !important; + border: 1px solid #003367; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + cursor: pointer; } .quick_repo_menu .menu_items { - margin-top: 6px; + margin-top: 10px; + margin-left:-6px; width: 150px; position: absolute; background-color: #FFF; @@ -664,7 +666,8 @@ div.options a { border-right: 1px solid #666666; border-style: solid; border-width: 1px; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); + box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2); + border-top-style: none; } .quick_repo_menu .menu_items li { @@ -807,7 +810,7 @@ div.options a { } #content div.box dl { - margin: 10px 24px; + margin: 10px 0px; } #content div.box dt { @@ -1825,7 +1828,7 @@ h3.files_location { #files_data dl dt { float: left; - width: 115px; + width: 60px; margin: 0 !important; padding: 5px; } diff --git a/rhodecode/templates/files/files.html b/rhodecode/templates/files/files.html --- a/rhodecode/templates/files/files.html +++ b/rhodecode/templates/files/files.html @@ -10,7 +10,7 @@ ${h.link_to(c.repo_name,h.url('files_home',repo_name=c.repo_name))} » ${_('files')} - %if c.files_list: + %if c.file: @ r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} %endif @@ -39,8 +39,8 @@