Skip to content

Commit

Permalink
Merge pull request #2078 from Sefaria/fix-topic-page-empty-sources
Browse files Browse the repository at this point in the history
Fix topic page empty sources
  • Loading branch information
nsantacruz authored Oct 28, 2024
2 parents 66c7020 + 2482a24 commit 16df431
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/linker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RUN apt-get update -qq \
&& rm -rf /var/lib/apt/lists/*

# fix issues with shared objects
RUN ls /usr/local/cuda-11.6/targets/x86_64-linux/lib/* | xargs -I{} ln -s {} /usr/lib/x86_64-linux-gnu/ \
RUN ls /usr/local/cuda-11.4/targets/x86_64-linux/lib/* | xargs -I{} ln -s {} /usr/lib/x86_64-linux-gnu/ \
&& ln -s libcuda.so /usr/lib/x86_64-linux-gnu/libcuda.so.1 \
&& ln -s libnvidia-ml.so /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1

Expand Down
11 changes: 7 additions & 4 deletions static/js/sefaria/sefaria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2730,10 +2730,13 @@ _media: {},
}

if (tabs["notable-sources"]) {
tabs["sources"]["title"] = {en: 'All Sources', he: Sefaria.translation('hebrew', 'All Sources')};
//turn "sources" tab into 'super-set', containing all refs from all tabs:
const allRefs = [...tabs["notable-sources"].refs, ...tabs["sources"].refs];
tabs["sources"].refs = allRefs;
if (!tabs.sources) {
tabs.sources = {refMap: {}, shouldDisplay: true, refs: []};
}
tabs.sources.title = {en: 'All Sources', he: Sefaria.translation('hebrew', 'All Sources')};
//turn "sources" tab into 'super-set', containing all refs from all tabs:
const allRefs = [...tabs["notable-sources"].refs, ...tabs.sources.refs];
tabs.sources.refs = allRefs;
}
if (Sefaria.is_moderator){
tabs["admin"] = {...tabs["sources"]};
Expand Down

0 comments on commit 16df431

Please sign in to comment.