Show More
@@ -111,9 +111,9 b' class AdminRepoGroupsView(BaseAppView, D' | |||
|
111 | 111 | def repo_group_list_data(self): |
|
112 | 112 | self.load_default_context() |
|
113 | 113 | column_map = { |
|
114 |
'name |
|
|
114 | 'name': 'group_name_hash', | |
|
115 | 115 | 'desc': 'group_description', |
|
116 |
'last_change |
|
|
116 | 'last_change': 'updated_on', | |
|
117 | 117 | 'top_level_repos': 'repos_total', |
|
118 | 118 | 'owner': 'user_username', |
|
119 | 119 | } |
@@ -223,9 +223,8 b' class AdminRepoGroupsView(BaseAppView, D' | |||
|
223 | 223 | row = { |
|
224 | 224 | "menu": quick_menu(repo_gr.group_name), |
|
225 | 225 | "name": repo_group_lnk(repo_gr.group_name), |
|
226 | "name_raw": repo_gr.group_name, | |
|
226 | ||
|
227 | 227 | "last_change": last_change(repo_gr.updated_on), |
|
228 | "last_change_raw": datetime_to_time(repo_gr.updated_on), | |
|
229 | 228 | |
|
230 | 229 | "last_changeset": "", |
|
231 | 230 | "last_changeset_raw": "", |
@@ -81,9 +81,9 b' class AdminReposView(BaseAppView, DataGr' | |||
|
81 | 81 | def repository_list_data(self): |
|
82 | 82 | self.load_default_context() |
|
83 | 83 | column_map = { |
|
84 |
'name |
|
|
84 | 'name': 'repo_name', | |
|
85 | 85 | 'desc': 'description', |
|
86 |
'last_change |
|
|
86 | 'last_change': 'updated_on', | |
|
87 | 87 | 'owner': 'user_username', |
|
88 | 88 | } |
|
89 | 89 | draw, start, limit = self._extract_chunk(self.request) |
@@ -171,7 +171,6 b' class AdminUserGroupsView(BaseAppView, D' | |||
|
171 | 171 | for user_gr in auth_user_group_list: |
|
172 | 172 | row = { |
|
173 | 173 | "users_group_name": user_group_name(user_gr.users_group_name), |
|
174 | "name_raw": h.escape(user_gr.users_group_name), | |
|
175 | 174 | "description": h.escape(user_gr.user_group_description), |
|
176 | 175 | "members": user_gr.member_count, |
|
177 | 176 | # NOTE(marcink): because of advanced query we |
@@ -685,9 +685,9 b' class HomeView(BaseAppView, DataGridAppV' | |||
|
685 | 685 | |
|
686 | 686 | def _main_page_repo_groups_data(self, repo_group_id): |
|
687 | 687 | column_map = { |
|
688 |
'name |
|
|
688 | 'name': 'group_name_hash', | |
|
689 | 689 | 'desc': 'group_description', |
|
690 |
'last_change |
|
|
690 | 'last_change': 'updated_on', | |
|
691 | 691 | 'owner': 'user_username', |
|
692 | 692 | } |
|
693 | 693 | draw, start, limit = self._extract_chunk(self.request) |
@@ -700,9 +700,9 b' class HomeView(BaseAppView, DataGridAppV' | |||
|
700 | 700 | |
|
701 | 701 | def _main_page_repos_data(self, repo_group_id): |
|
702 | 702 | column_map = { |
|
703 |
'name |
|
|
703 | 'name': 'repo_name', | |
|
704 | 704 | 'desc': 'description', |
|
705 |
'last_change |
|
|
705 | 'last_change': 'updated_on', | |
|
706 | 706 | 'owner': 'user_username', |
|
707 | 707 | } |
|
708 | 708 | draw, start, limit = self._extract_chunk(self.request) |
@@ -251,18 +251,16 b' class RepoModel(BaseModel):' | |||
|
251 | 251 | # NOTE(marcink): because we use only raw column we need to load it like that |
|
252 | 252 | changeset_cache = Repository._load_changeset_cache( |
|
253 | 253 | repo.repo_id, repo._changeset_cache) |
|
254 | last_commit_change = Repository._load_commit_change(changeset_cache) | |
|
255 | 254 | |
|
256 | 255 | row = { |
|
257 | 256 | "menu": quick_menu(repo.repo_name), |
|
258 | 257 | |
|
259 | 258 | "name": repo_lnk(repo.repo_name, repo.repo_type, repo.repo_state, |
|
260 | 259 | repo.private, repo.archived, repo.fork), |
|
261 | "name_raw": repo.repo_name.lower(), | |
|
260 | ||
|
262 | 261 | "desc": desc(repo.description), |
|
263 | 262 | |
|
264 |
"last_change": last_change( |
|
|
265 | "last_change_raw": datetime_to_time(last_commit_change), | |
|
263 | "last_change": last_change(repo.updated_on), | |
|
266 | 264 | |
|
267 | 265 | "last_changeset": last_rev(repo.repo_name, changeset_cache), |
|
268 | 266 | "last_changeset_raw": changeset_cache.get('revision'), |
@@ -749,7 +749,6 b' class RepoGroupModel(BaseModel):' | |||
|
749 | 749 | "name_raw": group.group_name, |
|
750 | 750 | |
|
751 | 751 | "last_change": last_change(last_commit_change), |
|
752 | "last_change_raw": datetime_to_time(last_commit_change), | |
|
753 | 752 | |
|
754 | 753 | "last_changeset": "", |
|
755 | 754 | "last_changeset_raw": "", |
@@ -71,12 +71,12 b'' | |||
|
71 | 71 | order: [[ 0, "asc" ]], |
|
72 | 72 | columns: [ |
|
73 | 73 | { data: {"_": "name", |
|
74 |
"sort": "name |
|
|
74 | "sort": "name"}, title: "${_('Name')}", className: "td-componentname" }, | |
|
75 | 75 | { data: 'menu', "bSortable": false, className: "quick_repo_menu" }, |
|
76 | 76 | { data: {"_": "desc", |
|
77 | 77 | "sort": "desc"}, title: "${_('Description')}", className: "td-description" }, |
|
78 | 78 | { data: {"_": "last_change", |
|
79 |
"sort": "last_change |
|
|
79 | "sort": "last_change", | |
|
80 | 80 | "type": Number}, title: "${_('Last Change')}", className: "td-time" }, |
|
81 | 81 | { data: {"_": "top_level_repos", |
|
82 | 82 | "sort": "top_level_repos"}, title: "${_('Number of top level repositories')}" }, |
@@ -72,7 +72,7 b'' | |||
|
72 | 72 | { |
|
73 | 73 | data: { |
|
74 | 74 | "_": "name", |
|
75 |
"sort": "name |
|
|
75 | "sort": "name" | |
|
76 | 76 | }, title: "${_('Name')}", className: "td-componentname" |
|
77 | 77 | }, |
|
78 | 78 | { |
@@ -86,7 +86,7 b'' | |||
|
86 | 86 | { |
|
87 | 87 | data: { |
|
88 | 88 | "_": "last_change", |
|
89 |
"sort": "last_change |
|
|
89 | "sort": "last_change", | |
|
90 | 90 | "type": Number |
|
91 | 91 | }, title: "${_('Last Change')}", className: "td-time" |
|
92 | 92 | }, |
@@ -58,10 +58,12 b'' | |||
|
58 | 58 | { |
|
59 | 59 | data: { |
|
60 | 60 | "_": "name", |
|
61 |
"sort": "name |
|
|
61 | "sort": "name" | |
|
62 | 62 | }, title: "${_('Name')}", className: "truncate-wrap td-grid-name" |
|
63 | 63 | }, |
|
64 | {data: 'menu', "bSortable": false, className: "quick_repo_menu"}, | |
|
64 | { | |
|
65 | data: 'menu', "bSortable": false, className: "quick_repo_menu" | |
|
66 | }, | |
|
65 | 67 | { |
|
66 | 68 | data: { |
|
67 | 69 | "_": "desc", |
@@ -71,7 +73,7 b'' | |||
|
71 | 73 | { |
|
72 | 74 | data: { |
|
73 | 75 | "_": "last_change", |
|
74 |
"sort": "last_change |
|
|
76 | "sort": "last_change", | |
|
75 | 77 | "type": Number |
|
76 | 78 | }, title: "${_('Last Change')}", className: "td-time" |
|
77 | 79 | }, |
@@ -80,7 +82,7 b'' | |||
|
80 | 82 | "_": "last_changeset", |
|
81 | 83 | "sort": "last_changeset_raw", |
|
82 | 84 | "type": Number |
|
83 | }, title: "", className: "td-hash" | |
|
85 | }, title: "", className: "td-hash", orderable: false | |
|
84 | 86 | }, |
|
85 | 87 | { |
|
86 | 88 | data: { |
@@ -147,7 +149,7 b'' | |||
|
147 | 149 | { |
|
148 | 150 | data: { |
|
149 | 151 | "_": "name", |
|
150 |
"sort": "name |
|
|
152 | "sort": "name" | |
|
151 | 153 | }, title: "${_('Name')}", className: "truncate-wrap td-grid-name" |
|
152 | 154 | }, |
|
153 | 155 | { |
@@ -162,16 +164,16 b'' | |||
|
162 | 164 | { |
|
163 | 165 | data: { |
|
164 | 166 | "_": "last_change", |
|
165 |
"sort": "last_change |
|
|
167 | "sort": "last_change", | |
|
166 | 168 | "type": Number |
|
167 |
}, title: "${_('Last Change')}", className: "td-time" |
|
|
169 | }, title: "${_('Last Change')}", className: "td-time" | |
|
168 | 170 | }, |
|
169 | 171 | { |
|
170 | 172 | data: { |
|
171 | 173 | "_": "last_changeset", |
|
172 | 174 | "sort": "last_changeset_raw", |
|
173 | 175 | "type": Number |
|
174 | }, title: "${_('Commit')}", className: "td-hash" | |
|
176 | }, title: "${_('Commit')}", className: "td-hash", orderable: false | |
|
175 | 177 | }, |
|
176 | 178 | { |
|
177 | 179 | data: { |
General Comments 0
You need to be logged in to leave comments.
Login now