Skip to content

Commit

Permalink
Published projects do not require auth, page listing cleanup (#4343)
Browse files Browse the repository at this point in the history
Co-authored-by: Ramin Haeri Azad <rhaeri@maelstrom-reseach.org>
  • Loading branch information
kazoompa and Ramin Haeri Azad committed Aug 16, 2022
1 parent b036e62 commit 08683a8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
import com.codahale.metrics.annotation.Timed;

@Path("/")
@RequiresAuthentication
public class PublishedProjectsResource {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mica.project
$scope.loading = true;
$scope.pagination = {current: 1, searchText: ''};
$scope.totalCount = 0;
$scope.limit = 3;
$scope.limit = 20;
$scope.sort = {
column: `id`,
order: 'asc'
Expand All @@ -173,6 +173,11 @@ mica.project
update();
});

$scope.onPageSizeSelected = function(size) {
$scope.limit = size;
$scope.pagination.current = 1;
loadPage($scope.pagination.current);
};
update();
}])

Expand Down
25 changes: 17 additions & 8 deletions mica-webapp/src/main/webapp/app/project/views/project-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,23 @@ <h2>
<entity-state-filter filter="filter" on-selected="onFilterSelected(filter)"></entity-state-filter>
</span>
</div>
<div class="col-xs-8">
<dir-pagination-controls
max-size="5"
boundary-links="true"
class="pull-right"
pagination-id="myPaginationList"
on-page-change="pageChanged(newPageNumber, oldPageNumber)">
</dir-pagination-controls>
<div class="col-xs-8 ">
<div class="pull-right">
<pagination-size-selector
class="padding-right-5"
style="display: inline-block"
size="limit"
total="totalCount"
on-selected="onPageSizeSelected(size)">
</pagination-size-selector>
<dir-pagination-controls
max-size="5"
boundary-links="true"
class="pull-right"
pagination-id="myPaginationList"
on-page-change="pageChanged(newPageNumber, oldPageNumber)">
</dir-pagination-controls>
</div>
</div>
</div>

Expand Down

0 comments on commit 08683a8

Please sign in to comment.