# HG changeset patch # User Marcin Kuzminski # Date 2013-06-17 13:08:31 # Node ID 867a7dffc42417a7712daf8558e5d7a54d603bcf # Parent 5ee04157cadc0c13543bd0b38f0ce0acb0afb398 Make the private icon of repo more distinguished from the public one. Makes it easy to see which repositories are private. 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 @@ -468,11 +468,11 @@ div:hover > a.permalink { } #header #header-inner #quick li ul li a.private_repo, #header #header-inner #quick li ul li a.private_repo:hover { - background-image: url("../images/icons/lock.png") + background-image: url("../images/icons/private_repo.png") } #header #header-inner #quick li ul li a.public_repo, #header #header-inner #quick li ul li a.public_repo:hover { - background-image: url("../images/icons/lock_open.png"); + background-image: url("../images/icons/public_repo.png"); } #header #header-inner #quick li ul li a.hg, #header #header-inner #quick li ul li a.hg:hover { diff --git a/rhodecode/public/images/icons/private_repo.png b/rhodecode/public/images/icons/private_repo.png new file mode 100644 index 0000000000000000000000000000000000000000..4e65c57cb831dec074c2a7b6ea6919d58bf0576e GIT binary patch literal 435 zc$@*V0ZjghP)^8hJ8Az#3+&#@Z@ZhM|RUF+8lhLc{sP%lh+`@d$o{j>uWq`_5( z>PI_cFn;xLyw{Tkm%wUiB8}#~(x_I7)p^6mX6RVBqY*-=eU>fjc~VrcjgCTAAtVoE zylW={M;4VDOBz#uoJls-7eE#cbZq&6`wpG!Y9y2-WVdW7%>2ZLby=gn09wPo!e3L3 zp^=yys@4#CmK7dLPHmV-@+FXkZ57h0qc&B`mlL)3k|cyA d=Ef{E_y-?Lq0wZhg0%nu002ovPDHLkV1l|)xi0_! diff --git a/rhodecode/public/images/icons/public_repo.png b/rhodecode/public/images/icons/public_repo.png new file mode 100644 index 0000000000000000000000000000000000000000..f93c6922308568fe16579b81886908acff590e7d GIT binary patch literal 746 zc$@+10u}vPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igk~ z0sS)UmYJGzrPvKl6rhFm&;8Si$ztfR;kr$0QkO7u~<}L7*3W-rAPDg^UG;~_qS*^ zn=cE6g1@k^K&@6A4T3-gL7$+_yi}bv#;~}!xDo_G`EPS# zV&W-qZ*_H5cXxNQr3D~ktwlua=1XH^W5O1pM1<Fr#Nh(Ytb=n%9HjupfD^DWjmjH5ZyWhTNBQ>b zHsW^Cd;BDgPZi>D1;1}6A{Nnc8lXW0v6}qA0lc;@P!1be-qkzkB__XbFTZ|f5wi~B zHUJ)gXpM*kt66zJL! + ${_('Private repository')} %elif not private and c.visual.show_public_icon: - ${_('Public repository')} + ${_('Public repository')} %endif ##NAME diff --git a/rhodecode/templates/repo_switcher_list.html b/rhodecode/templates/repo_switcher_list.html --- a/rhodecode/templates/repo_switcher_list.html +++ b/rhodecode/templates/repo_switcher_list.html @@ -7,9 +7,9 @@ %for repo in c.repos_list:
  • %if repo['dbrepo']['private'] and c.visual.show_private_icon: - ${_('Private repository')} + ${_('Private repository')} %elif not repo['dbrepo']['private'] and c.visual.show_public_icon: - ${_('Public repository')} + ${_('Public repository')} %endif ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']),class_="repo_name thin %s" % repo['dbrepo']['repo_type'])}
  • diff --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html +++ b/rhodecode/templates/summary/summary.html @@ -74,9 +74,9 @@ window.onhashchange = function() { ##PUBLIC/PRIVATE %if c.dbrepo.private: - ${_('Private repository')} + ${_('Private repository')} %else: - ${_('Public repository')} + ${_('Public repository')} %endif ##REPO NAME