Show More
@@ -1860,6 +1860,17 b' class Repository(Base, BaseModel):' | |||||
1860 | .all() |
|
1860 | .all() | |
1861 |
|
1861 | |||
1862 | @property |
|
1862 | @property | |
|
1863 | def cached_diffs_relative_dir(self): | |||
|
1864 | """ | |||
|
1865 | Return a relative to the repository store path of cached diffs | |||
|
1866 | used for safe display for users, who shouldn't know the absolute store | |||
|
1867 | path | |||
|
1868 | """ | |||
|
1869 | return os.path.join( | |||
|
1870 | os.path.dirname(self.repo_name), | |||
|
1871 | self.cached_diffs_dir.split(os.path.sep)[-1]) | |||
|
1872 | ||||
|
1873 | @property | |||
1863 | def cached_diffs_dir(self): |
|
1874 | def cached_diffs_dir(self): | |
1864 | path = self.repo_full_path |
|
1875 | path = self.repo_full_path | |
1865 | return os.path.join( |
|
1876 | return os.path.join( |
@@ -60,6 +60,10 b'' | |||||
60 | <div class="panel-body"> |
|
60 | <div class="panel-body"> | |
61 | <table class="rctable edit_cache"> |
|
61 | <table class="rctable edit_cache"> | |
62 | <tr> |
|
62 | <tr> | |
|
63 | <td>${_('Cached diff name')}:</td> | |||
|
64 | <td>${c.rhodecode_db_repo.cached_diffs_relative_dir}</td> | |||
|
65 | </tr> | |||
|
66 | <tr> | |||
63 | <td>${_('Cached diff files')}:</td> |
|
67 | <td>${_('Cached diff files')}:</td> | |
64 | <td>${c.cached_diff_count}</td> |
|
68 | <td>${c.cached_diff_count}</td> | |
65 | </tr> |
|
69 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now