Skip to content

Commit c4c8937

Browse files
committed
Merge branch 'develop' of https://github.com/CenterForOpenScience/osf.io into final-fix-for-addon-asset-loading
* 'develop' of https://github.com/CenterForOpenScience/osf.io: Display all Gitlab repos - that user has access to remain the change for register page title change Revert "[#OSF-8849]Make institutional login more prominent" Fix files grid link icons. replace the img and make it bigger on pc and mobile change to use Jquery 3 style done and fail
2 parents 1682ba2 + fcabded commit c4c8937

File tree

7 files changed

+11
-14
lines changed

7 files changed

+11
-14
lines changed

addons/gitlab/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ def repo(self, repo_id):
4747
raise NotFoundError
4848

4949
def repos(self):
50-
return self.gitlab.getprojects()
50+
return list(self.gitlab.getall(self.gitlab.getprojects, per_page=100))
5151

5252
def user_repos(self, user):
53-
return self.gitlab.getprojectsowned()
53+
return list(self.gitlab.getall(self.gitlab.getprojectsowned, per_page=100))
5454

5555
def create_repo(self, repo, **kwargs):
5656
return self.gitlab.createproject(repo)
-19.5 KB
Binary file not shown.
19.6 KB
Loading

website/static/js/profile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ var NameViewModel = function(urls, modes, preventUnsaved, fetchCallback) {
446446
name: self.full()
447447
},
448448
dataType: 'json',
449-
}).success(function (response) {
449+
}).done(function (response) {
450450
self.imputedGiven(response.given);
451451
self.imputedMiddle(response.middle);
452452
self.imputedFamily(response.family);

website/templates/public/pages/meeting_landing.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<div class="osf-meeting-header">
2828
<div class="container ">
2929
<div class="text-center m-b-lg">
30-
<h1><img src="/static/img/meeting-page/osf-meeting.png" alt="Logo for OSF meeting" style="width: 40%"></h1>
30+
<h1><img src="/static/img/meeting-page/osf_meetings_white.png" alt="Logo for OSF meeting" style="width: 80%"></h1>
3131
<h3>A <strong>free poster and presentation sharing service</strong> for academic meetings and conferences</h3>
3232
</div>
3333
<div class="network-img"> </div>

website/templates/public/register.mako

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -135,22 +135,19 @@
135135
</div>
136136
</br>
137137
<div class="form-group m-t-md">
138-
<div class="col-md-5 col-sm-12" >
139-
<div class="col-xs-12">
140-
<a href="${non_institution_login_url}" >Already have an account?</a>
141-
</div>
138+
<div class="col-md-5 col-sm-12" style="padding-left: 25px">
139+
<a href="${non_institution_login_url}" >Already have an account?</a>
140+
<br>
141+
<a href="${institution_login_url}">Login through your institution <i class="fa fa-arrow-right"></i></a>
142142
</div>
143143
<div class="col-md-7 col-sm-12">
144144
%if recaptcha_site_key:
145145
<div class="col-xs-12">
146146
<div class="pull-right g-recaptcha" data-sitekey="${recaptcha_site_key}"></div>
147-
147+
</div>
148148
%endif
149149
<div class="col-xs-12">
150-
<span class="pull-right p-t-sm">
151-
<a class="btn btn-default" href="${institution_login_url}">Sign in with your institution</a>
152-
<button type="submit" class="btn btn-success" data-bind="disable: submitted()">Create account</button>
153-
</span>
150+
<span class="pull-right p-t-sm"><button type="submit" class="btn btn-success" data-bind="disable: submitted()">Create account</button></span>
154151
</div>
155152
</div>
156153
</div>

website/util/rubeus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def _get_nodes(self, node, grid_root=None):
226226
data = []
227227
if node.can_view(auth=self.auth):
228228
serialized_addons = self._collect_addons(node)
229-
linked_node_sqs = node.node_relations.filter(is_node_link=True)
229+
linked_node_sqs = node.node_relations.filter(is_node_link=True, child=OuterRef('pk'))
230230
has_write_perm_sqs = Contributor.objects.filter(node=OuterRef('pk'), write=True, user=self.auth.user)
231231
children = (AbstractNode.objects
232232
.filter(is_deleted=False, _parents__parent=node)

0 commit comments

Comments
 (0)