-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #764 from aholachek/loading-views
Loading views
- Loading branch information
Showing
16 changed files
with
259 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ var pubsub = that.getBeeHive().getPubSub(); | |
msg: "Logged in to ADS", | ||
type: "success", | ||
modal : true | ||
})); | ||
})); | ||
|
92 changes: 45 additions & 47 deletions
92
src/js/modules/orcid/widget/templates/container-template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,69 @@ | ||
|
||
<div class="row s-results-control-row-container" style="text-align: center"> | ||
<div class="col-sm-10 col-sm-offset-1" > | ||
<!--static orcid info--> | ||
<div style="margin-top: 20px;"> | ||
<img src="../../styles/img/ads-orcid.svg" alt="the ORCID logo combined with ADS logo" style="max-width: 150px;"/> | ||
</div> | ||
<div class="row s-results-control-row-container" style="text-align: center"> | ||
<div class="col-sm-10 col-sm-offset-1" > | ||
<!--static orcid info--> | ||
<div style="margin-top: 20px;"> | ||
<img src="../../styles/img/ads-orcid.svg" alt="the ORCID logo combined with ADS logo" style="max-width: 150px;"/> | ||
</div> | ||
<!--loading user data--> | ||
{{#if loading}} | ||
<p><i class="icon-loading"></i> Loading...</p> | ||
{{else}} | ||
<h3> You are signed in to ORCID as <b>{{orcidUserName}}</b></h3> | ||
<p class="leader-text" style="margin-bottom: 0"> | ||
<a href="#orcid-instructions">Learn more about using ORCID with ADS.</a> | ||
</p> | ||
|
||
<br/> | ||
{{/if}} | ||
|
||
</div> | ||
</div> | ||
<div class="row s-darker-background"> | ||
<div class="col-sm-10 col-sm-offset-1 s-main-content-container" style="margin-top:20px;"> | ||
</div> | ||
<div class="row s-darker-background"> | ||
<div class="col-sm-10 col-sm-offset-1 s-main-content-container" style="margin-top:20px;"> | ||
|
||
<div class="s-list-controls"> | ||
<div class="s-list-controls"> | ||
|
||
<div class="s-results-border-bottom"> | ||
<div class="s-results-border-bottom"> | ||
|
||
<div class="col-sm-12"> | ||
<div class="col-sm-12"> | ||
{{#unless loading}} | ||
<h3 style="margin:48px 6.5%;"> <span class="s-light-font">My ORCID Papers</h3> | ||
{{#if orcidUserName}} | ||
<div style="margin:-20px 0 20px 6.5%" class="leader-text"> To claim papers in ORCID and add to this list, <button class="btn sm btn-default search-author-name"><i class="fa fa-search"></i> click here to search your name in ADS</button></div> | ||
{{else}} | ||
<div style="margin:-20px 0 20px 6.5%" class="leader-text"> To claim papers in ORCID and add to this list, search your name in ADS</button></div> | ||
<div style="margin:-20px 0 20px 6.5%" class="leader-text"> To claim papers in ORCID and add to this list, search your name in ADS</button></div> | ||
{{/if}} | ||
</div> | ||
|
||
{{/unless}} | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
</div> | ||
</div> | ||
|
||
{{#if title}} | ||
<div class="col-sm-12"> | ||
<h2 class="s-article-title">{{{title}}}</h2> | ||
<div class="row"> | ||
<ul class="col-sm-12 results-list s-results-list list-unstyled s-display-block" aria-label="list of results"> | ||
</ul> | ||
</div> | ||
{{#if pagination}} | ||
<div class="row"> | ||
<div class="col-sm-12 pagination-controls s-pagination-controls"> | ||
<div class="col-sm-5 col-sm-offset-2"> | ||
<ul class="pagination"> | ||
{{#if showFirst}} | ||
<li><a href="search/{{../currentQuery}}" data-paginate = "1" data-bypass>«</a></li> | ||
{{/if}} | ||
{{#each pageData}} | ||
<li {{#if this.current}} class="active" {{/if}} > | ||
<a href="{{this.link}}" data-bypass data-paginate = "{{this.p}}" >{{this.p}} </a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
{{/if}} | ||
|
||
<ul class="col-sm-12 results-list s-results-list list-unstyled s-display-block" aria-label="list of results"> | ||
</ul> | ||
|
||
</div> | ||
{{#if pagination}} | ||
<div class="row"> | ||
<div class="col-sm-12 pagination-controls s-pagination-controls"> | ||
<div class="col-sm-5 col-sm-offset-2"> | ||
<ul class="pagination"> | ||
{{#if showFirst}} | ||
<li><a href="search/{{../currentQuery}}" data-paginate = "1" data-bypass>«</a></li> | ||
{{/if}} | ||
{{#each pageData}} | ||
<li {{#if this.current}} class="active" {{/if}} > | ||
<a href="{{this.link}}" data-bypass data-paginate = "{{this.p}}" >{{this.p}} </a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
<div class="col-sm-5 s-per-page-controls"> | ||
Show <input class="per-page" type="text" placeholder="{{perPage}}"/> per page | ||
</div> | ||
<div class="col-sm-5 s-per-page-controls"> | ||
Show <input class="per-page" type="text" placeholder="{{perPage}}"/> per page | ||
</div> | ||
</div> | ||
{{/if}} | ||
|
||
</div> | ||
{{/if}} | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.