Skip to content

Commit

Permalink
fixed, the height of images
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed Jun 26, 2024
1 parent 05076c7 commit c56e11e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions hydroshare_resources_app/static/js/hs_resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const fetchHydroShareResources = () => {
<header class="course-image">
<div class="cover-image">
<a href="${resource.web_site_url}">
<img src="${resource.image}" class="img-tile img-fluid rounded-start" alt="..." style="width:200px; height:200px;" >
<img src="${resource.image}" class="img-tile img-fluid rounded-start" alt="..." style="width:auto; height:200px;" >
</a>
<div class="learn-more" aria-hidden="true">`
if (resource.resource_type == 'ToolResource'){
Expand All @@ -52,7 +52,7 @@ const fetchHydroShareResources = () => {
else{
resourcesHTML += `
<a href='javascript:void(0)' class='portfolio-link'>
<img src="${resource.image}" class="img-tile img-fluid rounded-start h-100" alt="..." style="width:200px; height:200px;">
<img src="${resource.image}" class="img-tile img-fluid rounded-start h-100" alt="..." style="width:auto; height:200px;">
</a></div>`
}
resourcesHTML += `
Expand Down
2 changes: 0 additions & 2 deletions hydroshare_resources_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ def hydroshare_resources_view(request):
resources_api = hs.resources(subject=keywords)

resources_model = instance.resources.get("resources", [])
# logging.warning(resources_model)

for resource_api in resources_api:
# logging.warning(resource_api['resource_title'])

matching_resource_model = get_dict_with_attribute(
resources_model, "resource_id", resource_api["resource_id"]
Expand Down
11 changes: 0 additions & 11 deletions zotero_publications_app/cms_apps.py

This file was deleted.

0 comments on commit c56e11e

Please sign in to comment.