Show More
@@ -105,11 +105,11 b' class TestGistsController(TestController' | |||||
105 | g4 = create_gist('gist4', gist_type='private').gist_access_id |
|
105 | g4 = create_gist('gist4', gist_type='private').gist_access_id | |
106 | response = self.app.get(route_path('gists_show')) |
|
106 | response = self.app.get(route_path('gists_show')) | |
107 |
|
107 | |||
108 |
response.mustcontain( |
|
108 | response.mustcontain(g1.gist_access_id) | |
109 |
response.mustcontain( |
|
109 | response.mustcontain(g2.gist_access_id) | |
110 |
response.mustcontain( |
|
110 | response.mustcontain(g3.gist_access_id) | |
111 | response.mustcontain('gist3-desc') |
|
111 | response.mustcontain('gist3-desc') | |
112 |
response.mustcontain(no=[ |
|
112 | response.mustcontain(no=[g4]) | |
113 |
|
113 | |||
114 | # Expiration information should be visible |
|
114 | # Expiration information should be visible | |
115 | expires_tag = '%s' % h.age_component( |
|
115 | expires_tag = '%s' % h.age_component( | |
@@ -122,7 +122,7 b' class TestGistsController(TestController' | |||||
122 | response = self.app.get(route_path('gists_show', params=dict(private=1))) |
|
122 | response = self.app.get(route_path('gists_show', params=dict(private=1))) | |
123 |
|
123 | |||
124 | # and privates |
|
124 | # and privates | |
125 |
response.mustcontain( |
|
125 | response.mustcontain(gist.gist_access_id) | |
126 |
|
126 | |||
127 | def test_index_show_all(self, create_gist): |
|
127 | def test_index_show_all(self, create_gist): | |
128 | self.log_user() |
|
128 | self.log_user() | |
@@ -136,7 +136,7 b' class TestGistsController(TestController' | |||||
136 | assert len(GistModel.get_all()) == 4 |
|
136 | assert len(GistModel.get_all()) == 4 | |
137 | # and privates |
|
137 | # and privates | |
138 | for gist in GistModel.get_all(): |
|
138 | for gist in GistModel.get_all(): | |
139 |
response.mustcontain( |
|
139 | response.mustcontain(gist.gist_access_id) | |
140 |
|
140 | |||
141 | def test_index_show_all_hidden_from_regular(self, create_gist): |
|
141 | def test_index_show_all_hidden_from_regular(self, create_gist): | |
142 | self.log_user(TEST_USER_REGULAR_LOGIN, TEST_USER_REGULAR_PASS) |
|
142 | self.log_user(TEST_USER_REGULAR_LOGIN, TEST_USER_REGULAR_PASS) | |
@@ -150,7 +150,7 b' class TestGistsController(TestController' | |||||
150 | # since we don't have access to private in this view, we |
|
150 | # since we don't have access to private in this view, we | |
151 | # should see nothing |
|
151 | # should see nothing | |
152 | for gist in GistModel.get_all(): |
|
152 | for gist in GistModel.get_all(): | |
153 |
response.mustcontain(no=[ |
|
153 | response.mustcontain(no=[gist.gist_access_id]) | |
154 |
|
154 | |||
155 | def test_create(self): |
|
155 | def test_create(self): | |
156 | self.log_user() |
|
156 | self.log_user() |
@@ -549,5 +549,12 b' table.compare_view_commits {' | |||||
549 | img{ |
|
549 | img{ | |
550 | vertical-align: middle; |
|
550 | vertical-align: middle; | |
551 | } |
|
551 | } | |
|
552 | ||||
|
553 | &.td-expire { | |||
|
554 | width: 200px; | |||
|
555 | } | |||
|
556 | &.td-gist-type { | |||
|
557 | width: 100px; | |||
|
558 | } | |||
552 | } |
|
559 | } | |
553 | } |
|
560 | } |
@@ -102,7 +102,7 b'' | |||||
102 | { data: {"_": "author", |
|
102 | { data: {"_": "author", | |
103 | "sort": "author_raw"}, title: "${_("Author")}", width: "250px", className: "td-user" }, |
|
103 | "sort": "author_raw"}, title: "${_("Author")}", width: "250px", className: "td-user" }, | |
104 | { data: {"_": "type", |
|
104 | { data: {"_": "type", | |
105 |
"sort": "type"}, title: "${_("Type")}", width: " |
|
105 | "sort": "type"}, title: "${_("Type")}", width: "100px", className: "td-gist-type" }, | |
106 | { data: {"_": "access_id", |
|
106 | { data: {"_": "access_id", | |
107 | "sort": "access_id"}, title: "${_("Name")}", width:"150px", className: "td-componentname" }, |
|
107 | "sort": "access_id"}, title: "${_("Name")}", width:"150px", className: "td-componentname" }, | |
108 | { data: {"_": "description", |
|
108 | { data: {"_": "description", | |
@@ -110,7 +110,7 b'' | |||||
110 | { data: {"_": "created_on", |
|
110 | { data: {"_": "created_on", | |
111 | "sort": "created_on_raw"}, title: "${_("Created on")}", className: "td-time" }, |
|
111 | "sort": "created_on_raw"}, title: "${_("Created on")}", className: "td-time" }, | |
112 | { data: {"_": "expires", |
|
112 | { data: {"_": "expires", | |
113 | "sort": "expires"}, title: "${_("Expires")}", className: "td-exp" } |
|
113 | "sort": "expires"}, title: "${_("Expires")}", width: "200px", className: "td-expire" } | |
114 | ], |
|
114 | ], | |
115 | language: { |
|
115 | language: { | |
116 | paginate: DEFAULT_GRID_PAGINATION, |
|
116 | paginate: DEFAULT_GRID_PAGINATION, |
@@ -310,9 +310,9 b'' | |||||
310 |
|
310 | |||
311 | <%def name="gist_access_id(gist_access_id, full_contact)"> |
|
311 | <%def name="gist_access_id(gist_access_id, full_contact)"> | |
312 | <div> |
|
312 | <div> | |
313 |
< |
|
313 | <code> | |
314 |
<a href="${h.route_path('gist_show', gist_id=gist_access_id)}"> |
|
314 | <a href="${h.route_path('gist_show', gist_id=gist_access_id)}">${gist_access_id}</a> | |
315 |
</ |
|
315 | </code> | |
316 | </div> |
|
316 | </div> | |
317 | </%def> |
|
317 | </%def> | |
318 |
|
318 |
General Comments 0
You need to be logged in to leave comments.
Login now