Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Feature/sup 2839 invite only challenge card #720

Merged
merged 3 commits into from
Feb 8, 2016

Conversation

vikasrohit
Copy link
Contributor

@parthshah @nlitwin @vic-appirio Please let me know if you guys think it is not done in desired way.

vikasrohit added 3 commits February 8, 2016 15:29
…nges shown on Profile

SUP-3012, [Profile] Implement "private challenge" card

-- Fixed issue with rendering of fallback-src directive for "No image available" placeholder image.
-- Hidden the placement(for both dev and design) and submission images (for design) view for invite-only challenges.
-- Changed the placeholder image for private challenges where submissions are not viewable. As of now API does not support that, hence, negation of isPrivate field is used to determine submissionViewable or not.
* dev: (23 commits)
  Delete unneeded folder and files
  Add better examples
  Update command in readme
  Change command
  Update readme for linting
  Enforce linting and fail early with travis scripts
  Try travis command
  Try different error and travis command
  test lint error
  Enforce linting
  Remove unused code
  Update version
  Too many semicolons
  Put back after fix
  Test
  Refactor for clarification and remove unneeded code
  Add detect encoding to production
  Move mangle options outside webpack config repo
  Put back webpack version for new release
  Remove old karma browsers
  ...
vikasrohit pushed a commit that referenced this pull request Feb 8, 2016
…y-challenge-card

Feature/sup 2839 invite only challenge card

@nlitwin @vic-appirio @parthshah merging to show it in working on dev environment. cc: @fnisen
@vikasrohit vikasrohit merged commit b96de43 into dev Feb 8, 2016
img(ng-show="!challenge.isPrivate", ng-src="{{imageURL || require('../../../assets/images/card-bg-no-image.svg')}}", fallback-src=require("../../../assets/images/card-bg-no-image.svg"))
img(ng-show="challenge.isPrivate", src=require("../../../assets/images/card-bg-private-project.svg"))
img(ng-show="challenge.submissionViewable && imageURL", ng-src="{{imageURL}}")
img(ng-show="challenge.submissionViewable && !imageURL", ng-src="../../../assets/images/card-bg-no-image.svg")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add require statement here, so Webpack can handle the dependency on the image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching it. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants