Show More
@@ -1860,6 +1860,17 b' class Repository(Base, BaseModel):' | |||
|
1860 | 1860 | .all() |
|
1861 | 1861 | |
|
1862 | 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 | 1874 | def cached_diffs_dir(self): |
|
1864 | 1875 | path = self.repo_full_path |
|
1865 | 1876 | return os.path.join( |
@@ -60,6 +60,10 b'' | |||
|
60 | 60 | <div class="panel-body"> |
|
61 | 61 | <table class="rctable edit_cache"> |
|
62 | 62 | <tr> |
|
63 | <td>${_('Cached diff name')}:</td> | |
|
64 | <td>${c.rhodecode_db_repo.cached_diffs_relative_dir}</td> | |
|
65 | </tr> | |
|
66 | <tr> | |
|
63 | 67 | <td>${_('Cached diff files')}:</td> |
|
64 | 68 | <td>${c.cached_diff_count}</td> |
|
65 | 69 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now