Skip to content

Commit

Permalink
Merge pull request #865 from newswangerd/repsonsive-home
Browse files Browse the repository at this point in the history
Repsonsive home
  • Loading branch information
newswangerd authored Jul 11, 2018
2 parents 3af2fa0 + 218500b commit 5679471
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
8 changes: 1 addition & 7 deletions galaxy/worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,19 @@ def _import_repository(import_task, logger):
logger.info(u'Starting import: task_id={}, repository={}'
.format(import_task.id, repo_full_name))

if import_task.import_branch:
repository.import_branch = import_task.import_branch

token = _get_social_token(import_task)
gh_api = github.Github(token)
gh_repo = gh_api.get_repo(repo_full_name)

try:
repo_info = i_repo.import_repository(
repository.clone_url,
branch=repository.import_branch,
temp_dir=settings.CONTENT_DOWNLOAD_DIR,
logger=logger)
except i_exc.ImporterError as e:
raise exc.TaskError(str(e))

if repository.import_branch is None:
repository.import_branch = repo_info.branch

repository.import_branch = repo_info.branch
repository.format = repo_info.format.value

if repo_info.name:
Expand Down
24 changes: 12 additions & 12 deletions galaxyui/src/app/home/carousel/carousel.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.partner-carousel {
border: 1px solid #ccc;
width: 100%;
height: 265px;
height: 185px;
color: @black;
}

Expand All @@ -31,15 +31,15 @@
.carousel-left-control, .carousel-right-control {
display: inline-block;
background-color: transparent;
height: 225px;
height: 185px;
vertical-align: middle;
width: 2%;
min-width: 20px;
text-align: center;
color: #b7b7b7;
a {
display: block;
margin-top: 105px;
margin-top: 80px;
}
a:hover {
cursor: pointer;
Expand All @@ -55,7 +55,7 @@

.carousel-slider {
display: inline-block;
height: 225px;
height: 145px;
vertical-align: middle;
width: 95%;
}
Expand Down Expand Up @@ -93,13 +93,13 @@
overflow-x: hidden;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
padding: 15px;
padding: 0px;
}

.carousel-slider-inner > div {
border-right: 1px solid #ccc;
text-align: center;
padding: 15px 30px;
padding: 5px 15px;
flex-shrink: 0;
.img-wrapper {
width: 100%;
Expand All @@ -113,18 +113,18 @@
}
}
img {
width: 200px;
width: 120px;
}
img.missing-avatar {
width: 200px;
height: 170px;
width: 120px;
// height: 170px;
}
p {
padding-top: 10px;
padding-top: 0px;
font-weight: 700;
}
width: 260px;
height: 225px;
width: 155px;
height: 145px;
}

.carousel-slider-inner > div:last-child {
Expand Down
6 changes: 3 additions & 3 deletions galaxyui/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<popular-component></popular-component>

<div class="row content-row" [ngClass]="{'ready': showCards}">
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-1">
<pfng-card
[headerTemplate]="downloadHeader"
Expand All @@ -20,7 +20,7 @@
</pfng-card>
</div>
</div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-2">
<pfng-card
[headerTemplate]="shareHeader"
Expand All @@ -34,7 +34,7 @@
</pfng-card>
</div>
</div>
<div class="col-sm-4">
<div class="col-md-4">
<div class="home-card" id="card-3">
<pfng-card
[headerTemplate]="featureHeader"
Expand Down

0 comments on commit 5679471

Please sign in to comment.