Skip to content

Commit

Permalink
rough draft of fix for #24 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmengel authored Mar 21, 2024
1 parent c48bd8f commit 2c1af90
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_version():


setup(
name = "metacat_client",
name = "metacat-client",
version = get_version(),
author = "Marc Mengel, Igor Mandrichenko",
author_email = "mengel@fnal.gov",
Expand Down
2 changes: 1 addition & 1 deletion upload_pypi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


rm -rf build dist *.egg-info
python setup.py sdist bdist_wheel
python setup.py sdist bdist
twine upload dist/*
rm -rf build dist *.egg-info

1 change: 1 addition & 0 deletions webserver/gui_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ def datasets(self, request, relpath, selection=None, page=0, page_size=1000, sor
page_links = self.make_page_links(npages, page, page_size, all_page_links, 2)

return self.render_to_response("datasets.html", datasets=datasets,
selection=selection,
page=page, npages=npages, page_links=page_links, namematch=namematch,
owned_namespaces = owned_namespaces, other_namespaces=other_namespaces,
selection=selection, user=user, **self.messages(args))
Expand Down
10 changes: 5 additions & 5 deletions webserver/templates/datasets.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@

<table class="data">
<tr>
<th>Name<a href="./datasets?sort_by=Name&sort_asc=d&namematch={{namematch}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Name&sort_asc=a&namematch={{namematch}}" style="text-decoration: none">&uArr;</a></th>
<th>Name<a href="./datasets?sort_by=Name&sort_asc=d&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Name&sort_asc=a&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&uArr;</a></th>
<th>Namespace</th>
{% if logged_in %}<th>Creator<a href="./datasets?sort_by=Creator&sort_asc=d&namematch={{namematch}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Creator&sort_asc=a&namematch={{namematch}}" style="text-decoration: none">&uArr;</a></th>{% endif %}
<th>Created<a href="./datasets?sort_by=Created&sort_asc=d&namematch={{namematch}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Created&sort_asc=a&namematch={{namematch}}" style="text-decoration: none">&uArr;</a></th>
{% if logged_in %}<th>Owner<a href="./datasets?sort_by=Owner&sort_asc=d&namematch={{namematch}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Owner&sort_asc=a&namematch={{namematch}}" style="text-decoration: none">&uArr;</a></th>{% endif %}
{% if logged_in %}<th>Creator<a href="./datasets?sort_by=Creator&sort_asc=d&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Creator&sort_asc=a&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&uArr;</a></th>{% endif %}
<th>Created<a href="./datasets?sort_by=Created&sort_asc=d&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Created&sort_asc=a&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&uArr;</a></th>
{% if logged_in %}<th>Owner<a href="./datasets?sort_by=Owner&sort_asc=d&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Owner&sort_asc=a&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&uArr;</a></th>{% endif %}
<th>Flags</th>
<th>Files<sup>*</sup><a href="./datasets?sort_by=Files&sort_asc=d&namematch={{namematch}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Files&sort_asc=a&namematch={{namematch}}" style="text-decoration: none">&uArr;</a></th>
<th>Files<sup>*</sup><a href="./datasets?sort_by=Files&sort_asc=d&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&dArr;</a><a href="./datasets?sort_by=Files&sort_asc=a&namematch={{namematch}}&selection={{selection}}" style="text-decoration: none">&uArr;</a></th>
<th>Children</th>
<th>Subsets</th>
<th>Parents</th>
Expand Down

0 comments on commit 2c1af90

Please sign in to comment.