Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
ac5b3a73
Commit
ac5b3a73
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
minor tweaks to biblio cards visualisation
Former-commit-id: a05619d1f39f4feb08ca2ee1e165600561cf784f
parent
a92c66d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ippisite/ippidb/templates/biblio_card.html
+5
-1
5 additions, 1 deletion
ippisite/ippidb/templates/biblio_card.html
ippisite/ippidb/templates/biblio_list.html
+12
-3
12 additions, 3 deletions
ippisite/ippidb/templates/biblio_list.html
with
17 additions
and
4 deletions
ippisite/ippidb/templates/biblio_card.html
+
5
−
1
View file @
ac5b3a73
...
...
@@ -9,6 +9,10 @@
function
display
(
smiles_id
,
viewer_id
)
{
var
smi
=
document
.
getElementById
(
smiles_id
).
value
;
var
chemViewer
=
new
Kekule
.
ChemWidget
.
Viewer
(
document
.
getElementById
(
viewer_id
));
chemViewer
.
setEnableToolbar
(
false
)
.
setEnableDirectInteraction
(
false
)
.
setEnableEdit
(
false
)
.
setToolButtons
([]);
var
mol
=
Kekule
.
IO
.
loadFormatData
(
smi
,
"
smi
"
);
chemViewer
.
setChemObj
(
mol
);
console
.
log
(
smi
);
...
...
@@ -57,7 +61,7 @@
<div
class=
"card"
>
<div
class=
"card-body"
>
<div
id=
"{{ compound_biblio.id }}_smilesdisplay"
data-widget=
"Kekule.ChemWidget.Viewer2D"
data-enable-toolbar=
"true"
data-auto-size=
"true"
data-padding=
"20"
data-widget=
"Kekule.ChemWidget.Viewer2D"
data-auto-size=
"true"
data-padding=
"20"
data-toolbar-evoke-modes=
"[0]"
>
</div>
<textarea
rows=
"10"
cols=
"50"
id=
"{{ compound_biblio.id }}_smilesvalue"
style=
"display:none;"
>
{{ compound_biblio.compound.canonical_smile }}
</textarea>
...
...
This diff is collapsed.
Click to expand it.
ippisite/ippidb/templates/biblio_list.html
+
12
−
3
View file @
ac5b3a73
...
...
@@ -12,11 +12,20 @@
<div
id=
"content"
class=
"main-content"
>
<main
role=
"main"
>
{% if bibliographies %}
<ul>
<table
class=
"table"
>
<thead
class=
"thead-light"
>
<tr>
<th
scope=
"col"
>
Title
</th>
</tr>
</thead>
<tbody>
{% for biblio in bibliographies %}
<li><a
href=
"/biblio/{{ biblio.source }}{{ biblio.id_source}}"
>
{{ biblio.title }}
</a></li>
<tr>
<td><a
href=
"/biblio/{{ biblio.source }}{{ biblio.id_source}}"
>
{{ biblio.title }}
</a></td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
{% else %}
<p>
No bibliographies available.
</p>
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment