merge into current master
@@ -34,3 +34,6 @@ doc/code/*
|
||||
.secret
|
||||
*.log
|
||||
public/uploads.*
|
||||
public/assets/
|
||||
.envrc
|
||||
dump.rdb
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
user: git
|
||||
group: git
|
||||
before_precompile: ./bin/pkgr_before_precompile.sh
|
||||
targets:
|
||||
debian-7: &wheezy
|
||||
build_dependencies:
|
||||
- libicu-dev
|
||||
dependencies:
|
||||
- libicu48
|
||||
- libpcre3
|
||||
- git
|
||||
ubuntu-12.04: *wheezy
|
||||
ubuntu-14.04:
|
||||
build_dependencies:
|
||||
- libicu-dev
|
||||
dependencies:
|
||||
- libicu52
|
||||
- libpcre3
|
||||
- git
|
||||
@@ -1,25 +1,32 @@
|
||||
language: ruby
|
||||
env:
|
||||
global:
|
||||
- DB=mysql
|
||||
- TRAVIS=true
|
||||
matrix:
|
||||
- TASK=spinach
|
||||
- TASK=spec
|
||||
- TASK=jasmine:ci
|
||||
- TASK=spinach DB=mysql
|
||||
- TASK=spec:api DB=mysql
|
||||
- TASK=spec:feature DB=mysql
|
||||
- TASK=spec:other DB=mysql
|
||||
- TASK=jasmine:ci DB=mysql
|
||||
- TASK=spinach DB=postgresql
|
||||
- TASK=spec:api DB=postgresql
|
||||
- TASK=spec:feature DB=postgresql
|
||||
- TASK=spec:other DB=postgresql
|
||||
- TASK=jasmine:ci DB=postgresql
|
||||
before_install:
|
||||
- sudo apt-get install libicu-dev -y
|
||||
- gem install charlock_holmes -v="0.6.9"
|
||||
branches:
|
||||
only:
|
||||
- 'master'
|
||||
rvm:
|
||||
- 2.0.0
|
||||
services:
|
||||
- mysql
|
||||
- redis-server
|
||||
before_script:
|
||||
- "cp config/database.yml.$DB config/database.yml"
|
||||
- "cp config/gitlab.yml.example config/gitlab.yml"
|
||||
- "bundle exec rake db:setup"
|
||||
- "bundle exec rake db:seed_fu"
|
||||
script: "bundle exec rake $TASK --trace"
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
@@ -1,3 +1,194 @@
|
||||
v 6.9.0
|
||||
- Store Rails cache data in the Redis `cache:gitlab` namespace
|
||||
- Adjust MySQL limits for existing installations
|
||||
- Add db index on project_id+iid column. This prevents duplicate on iid (During migration duplicates will be removed)
|
||||
- Markdown preview or diff during editing via web editor (Evgeniy Sokovikov)
|
||||
- Give the Rails cache its own Redis namespace
|
||||
- Add ability to set different ssh host, if different from http/https
|
||||
- Fix syntax highlighting for code comments blocks
|
||||
- Improve comments loading logic
|
||||
- Stop refreshing comments when the tab is hidden
|
||||
- Improve issue and merge request mobile UI (Drew Blessing)
|
||||
- Document how to convert a backup to PostgreSQL
|
||||
- Fix locale bug in backup manager
|
||||
- Fix can not automerge when MR description is too long
|
||||
- Fix wiki backup skip bug
|
||||
- Two Step MR creation process
|
||||
- Remove unwanted files from satellite working directory with git clean -fdx
|
||||
- Accept merge request via API (sponsored by O'Reilly Media)
|
||||
- Add more access checks during API calls
|
||||
- Block SSH access for 'disabled' Active Directory users
|
||||
|
||||
v 6.8.0
|
||||
- Ability to at mention users that are participating in issue and merge req. discussion
|
||||
- Enabled GZip Compression for assets in example Nginx, make sure that Nginx is compiled with --with-http_gzip_static_module flag (this is default in Ubuntu)
|
||||
- Make user search case-insensitive (Christopher Arnold)
|
||||
- Remove omniauth-ldap nickname bug workaround
|
||||
- Drop all tables before restoring a Postgres backup
|
||||
- Make the repository downloads path configurable
|
||||
- Create branches via API (sponsored by O'Reilly Media)
|
||||
- Changed permission of gitlab-satellites directory not to be world accessible
|
||||
- Protected branch does not allow force push
|
||||
- Fix popen bug in `rake gitlab:satellites:create`
|
||||
- Disable connection reaping for MySQL
|
||||
- Allow oauth signup without email for twitter and github
|
||||
- Fix faulty namespace names that caused 500 on user creation
|
||||
- Option to disable standard login
|
||||
- Clean old created archives from repository downloads directory
|
||||
- Fix download link for huge MR diffs
|
||||
- Expose event and mergerequest timestamps in API
|
||||
- Fix emails on push service when only one commit is pushed
|
||||
|
||||
v 6.7.3
|
||||
- Fix the merge notification email not being sent (Pierre de La Morinerie)
|
||||
- Drop all tables before restoring a Postgres backup
|
||||
- Remove yanked modernizr gem
|
||||
|
||||
v 6.7.2
|
||||
- Fix upgrader script
|
||||
|
||||
v 6.7.1
|
||||
- Fix GitLab CI integration
|
||||
|
||||
v 6.7.0
|
||||
- Increased the example Nginx client_max_body_size from 5MB to 20MB, consider updating it manually on existing installations
|
||||
- Add support for Gemnasium as a Project Service (Olivier Gonzalez)
|
||||
- Add edit file button to MergeRequest diff
|
||||
- Public groups (Jason Hollingsworth)
|
||||
- Cleaner headers in Notification Emails (Pierre de La Morinerie)
|
||||
- Blob and tree gfm links to anchors work
|
||||
- Piwik Integration (Sebastian Winkler)
|
||||
- Show contribution guide link for new issue form (Jeroen van Baarsen)
|
||||
- Fix CI status for merge requests from fork
|
||||
- Added option to remove issue assignee on project issue page and issue edit page (Jason Blanchard)
|
||||
- New page load indicator that includes a spinner that scrolls with the page
|
||||
- Converted all the help sections into markdown
|
||||
- LDAP user filters
|
||||
- Streamline the content of notification emails (Pierre de La Morinerie)
|
||||
- Fixes a bug with group member administration (Matt DeTullio)
|
||||
- Sort tag names using VersionSorter (Robert Speicher)
|
||||
- Add GFM autocompletion for MergeRequests (Robert Speicher)
|
||||
- Add webhook when a new tag is pushed (Jeroen van Baarsen)
|
||||
- Add button for toggling inline comments in diff view
|
||||
- Add retry feature for repository import
|
||||
- Reuse the GitLab LDAP connection within each request
|
||||
- Changed markdown new line behaviour to conform to markdown standards
|
||||
- Fix global search
|
||||
- Faster authorized_keys rebuilding in `rake gitlab:shell:setup` (requires gitlab-shell 1.8.5)
|
||||
- Create and Update MR calls now support the description parameter (Greg Messner)
|
||||
- Markdown relative links in the wiki link to wiki pages, markdown relative links in repositories link to files in the repository
|
||||
- Added Slack service integration (Federico Ravasio)
|
||||
- Better API responses for access_levels (sponsored by O'Reilly Media)
|
||||
- Requires at least 2 unicorn workers
|
||||
- Requires gitlab-shell v1.9+
|
||||
- Replaced gemoji(due to closed licencing problem) with Phantom Open Emoji library(combined SIL Open Font License, MIT License and the CC 3.0 License)
|
||||
- Fix `/:username.keys` response content type (Dmitry Medvinsky)
|
||||
|
||||
v 6.6.5
|
||||
- Added option to remove issue assignee on project issue page and issue edit page (Jason Blanchard)
|
||||
- Hide mr close button for comment form if merge request was closed or inline comment
|
||||
- Adds ability to reopen closed merge request
|
||||
|
||||
v 6.6.4
|
||||
- Add missing html escape for highlighted code blocks in comments, issues
|
||||
|
||||
v 6.6.3
|
||||
- Fix 500 error when edit yourself from admin area
|
||||
- Hide private groups for public profiles
|
||||
|
||||
v 6.6.2
|
||||
- Fix 500 error on branch/tag create or remove via UI
|
||||
|
||||
v 6.6.1
|
||||
- Fix 500 error on files tab if submodules presents
|
||||
|
||||
v 6.6.0
|
||||
- Retrieving user ssh keys publically(github style): http://__HOST__/__USERNAME__.keys
|
||||
- Permissions: Developer now can manage issue tracker (modify any issue)
|
||||
- Improve Code Compare page performance
|
||||
- Group avatar
|
||||
- Pygments.rb replaced with highlight.js
|
||||
- Improve Merge request diff store logic
|
||||
- Improve render performnace for MR show page
|
||||
- Fixed Assembla hardcoded project name
|
||||
- Jira integration documentation
|
||||
- Refactored app/services
|
||||
- Remove snippet expiration
|
||||
- Mobile UI improvements (Drew Blessing)
|
||||
- Fix block/remove UI for admin::users#show page
|
||||
- Show users' group membership on users' activity page (Robert Djurasaj)
|
||||
- User pages are visible without login if user is authorized to a public project
|
||||
- Markdown rendered headers have id derived from their name and link to their id
|
||||
- Improve application to work faster with large groups (100+ members)
|
||||
- Multiple emails per user
|
||||
- Show last commit for file when view file source
|
||||
- Restyle Issue#show page and MR#show page
|
||||
- Ability to filter by multiple labels for Issues page
|
||||
- Rails version to 4.0.3
|
||||
- Fixed attachment identifier displaying underneath note text (Jason Blanchard)
|
||||
|
||||
v 6.5.1
|
||||
- Fix branch selectbox when create merge request from fork
|
||||
|
||||
v 6.5.0
|
||||
- Dropdown menus on issue#show page for assignee and milestone (Jason Blanchard)
|
||||
- Add color custimization and previewing to broadcast messages
|
||||
- Fixed notes anchors
|
||||
- Load new comments in issues dynamically
|
||||
- Added sort options to Public page
|
||||
- New filters (assigned/authored/all) for Dashboard#issues/merge_requests (sponsored by Say Media)
|
||||
- Add project visibility icons to dashboard
|
||||
- Enable secure cookies if https used
|
||||
- Protect users/confirmation with rack_attack
|
||||
- Default HTTP headers to protect against MIME-sniffing, force https if enabled
|
||||
- Bootstrap 3 with responsive UI
|
||||
- New repository download formats: tar.bz2, zip, tar (Jason Hollingsworth)
|
||||
- Restyled accept widgets for MR
|
||||
- SCSS refactored
|
||||
- Use jquery timeago plugin
|
||||
- Fix 500 error for rdoc files
|
||||
- Ability to customize merge commit message (sponsored by Say Media)
|
||||
- Search autocomplete via ajax
|
||||
- Add website url to user profile
|
||||
- Files API supports base64 encoded content (sponsored by O'Reilly Media)
|
||||
- Added support for Go's repository retrieval (Bruno Albuquerque)
|
||||
|
||||
v6.4.3
|
||||
- Don't use unicorn worker killer if PhusionPassenger is defined
|
||||
|
||||
v6.4.2
|
||||
- Fixed wrong behaviour of script/upgrade.rb
|
||||
|
||||
v6.4.1
|
||||
- Fixed bug with repository rename
|
||||
- Fixed bug with project transfer
|
||||
|
||||
v 6.4.0
|
||||
- Added sorting to project issues page (Jason Blanchard)
|
||||
- Assembla integration (Carlos Paramio)
|
||||
- Fixed another 500 error with submodules
|
||||
- UI: More compact issues page
|
||||
- Minimal password length increased to 8 symbols
|
||||
- Side-by-side diff view (Steven Thonus)
|
||||
- Internal projects (Jason Hollingsworth)
|
||||
- Allow removal of avatar (Drew Blessing)
|
||||
- Project web hooks now support issues and merge request events
|
||||
- Visiting project page while not logged in will redirect to sign-in instead of 404 (Jason Hollingsworth)
|
||||
- Expire event cache on avatar creation/removal (Drew Blessing)
|
||||
- Archiving old projects (Steven Thonus)
|
||||
- Rails 4
|
||||
- Add time ago tooltips to show actual date/time
|
||||
- UI: Fixed UI for admin system hooks
|
||||
- Ruby script for easier GitLab upgrade
|
||||
- Do not remove Merge requests if fork project was removed
|
||||
- Improve sign-in/signup UX
|
||||
- Add resend confirmation link to sign-in page
|
||||
- Set noreply@HOSTNAME for reply_to field in all emails
|
||||
- Show GitLab API version on Admin#dashboard
|
||||
- API Cross-origin resource sharing
|
||||
- Show READMe link at project home page
|
||||
- Show repo size for projects in Admin area
|
||||
|
||||
v 6.3.0
|
||||
- API for adding gitlab-ci service
|
||||
- Init script now waits for pids to appear after (re)starting before reporting status (Rovanion Luckey)
|
||||
@@ -7,6 +198,36 @@ v 6.3.0
|
||||
- Security improvements
|
||||
- Added support for GitLab CI 4.0
|
||||
- Fixed issue with 500 error when group did not exist
|
||||
- Ability to leave project
|
||||
- You can create file in repo using UI
|
||||
- You can remove file from repo using UI
|
||||
- API: dropped default_branch attribute from project during creation
|
||||
- Project default_branch is not stored in db any more. It takes from repo now.
|
||||
- Admin broadcast messages
|
||||
- UI improvements
|
||||
- Dont show last push widget if user removed this branch
|
||||
- Fix 500 error for repos with newline in file name
|
||||
- Extended html titles
|
||||
- API: create/update/delete repo files
|
||||
- Admin can transfer project to any namespace
|
||||
- API: projects/all for admin users
|
||||
- Fix recent branches order
|
||||
|
||||
v 6.2.4
|
||||
- Security: Cast API private_token to string (CVE-2013-4580)
|
||||
- Security: Require gitlab-shell 1.7.8 (CVE-2013-4581, CVE-2013-4582, CVE-2013-4583)
|
||||
- Fix for Git SSH access for LDAP users
|
||||
|
||||
v 6.2.3
|
||||
- Security: More protection against CVE-2013-4489
|
||||
- Security: Require gitlab-shell 1.7.4 (CVE-2013-4490, CVE-2013-4546)
|
||||
- Fix sidekiq rake tasks
|
||||
|
||||
v 6.2.2
|
||||
- Security: Update gitlab_git (CVE-2013-4489)
|
||||
|
||||
v 6.2.1
|
||||
- Security: Fix issue with generated passwords for new users
|
||||
|
||||
v 6.2.0
|
||||
- Public project pages are now visible to everyone (files, issues, wik, etc.)
|
||||
@@ -28,7 +249,7 @@ v 6.2.0
|
||||
- Avatar upload on profile page with a maximum of 100KB (Steven Thonus)
|
||||
- Store the sessions in Redis instead of the cookie store
|
||||
- Fixed relative links in markdown
|
||||
- User must confirm his email if signup enabled
|
||||
- User must confirm their email if signup enabled
|
||||
- User must confirm changed email
|
||||
|
||||
v 6.1.0
|
||||
@@ -50,7 +271,7 @@ v 6.1.0
|
||||
- Add links to create branch/tag from project home page
|
||||
- Add public-project? checkbox to new-project view
|
||||
- Improved compare page. Added link to proceed into Merge Request
|
||||
- Send email to user when he was added to group
|
||||
- Send an email to a user when they are added to group
|
||||
- New landing page when you have 0 projects
|
||||
|
||||
v 6.0.0
|
||||
@@ -93,6 +314,14 @@ v 6.0.0
|
||||
- Improved MR comments logic
|
||||
- Render readme file for projects in public area
|
||||
|
||||
v 5.4.2
|
||||
- Security: Cast API private_token to string (CVE-2013-4580)
|
||||
- Security: Require gitlab-shell 1.7.8 (CVE-2013-4581, CVE-2013-4582, CVE-2013-4583)
|
||||
|
||||
v 5.4.1
|
||||
- Security: Fixes for CVE-2013-4489
|
||||
- Security: Require gitlab-shell 1.7.4 (CVE-2013-4490, CVE-2013-4546)
|
||||
|
||||
v 5.4.0
|
||||
- Ability to edit own comments
|
||||
- Documentation improvements
|
||||
|
||||
@@ -1,38 +1,48 @@
|
||||
# Contribute to GitLab
|
||||
|
||||
This guide details how to use issues and pull requests to improve GitLab.
|
||||
|
||||
- [Closing policy for issues and pull requests](#closing-policy-for-issues-and-pull-requests)
|
||||
- [Issue tracker](#issue-tracker)
|
||||
- [Pull requests](#pull-requests)
|
||||
- [Security vulnerabilities](#security-vulnerabilities)
|
||||
This guide details how contribute to GitLab.
|
||||
|
||||
If you want to know how the GitLab team handles contributions have a look at [the GitLab contributing process](PROCESS.md).
|
||||
|
||||
## Closing policy for issues and pull requests
|
||||
## Contributor license agreement
|
||||
|
||||
GitLab is a popular open source project and the capacity to deal with issues and pull requests is limited. Out of respect for our volunteers, issues and pull requests not in line with the guidelines listed in this document may be closed without notice.
|
||||
By submitting code as an individual you agree to the [individual contributor license agreement](doc/legal/individual_contributor_license_agreement.md). By submitting code as an entity you agree to the [corporate contributor license agreement](doc/legal/corporate_contributor_license_agreement.md).
|
||||
|
||||
## Security vulnerability disclosure
|
||||
|
||||
Please report suspected security vulnerabilities in private to support@gitlab.com, also see the [disclosure section on the GitLab.com website](http://www.gitlab.com/disclosure/). Please do NOT create publicly viewable issues for suspected security vulnerabilities.
|
||||
|
||||
## Closing policy for issues and merge requests
|
||||
|
||||
GitLab is a popular open source project and the capacity to deal with issues and merge requests is limited. Out of respect for our volunteers, issues and merge requests not in line with the guidelines listed in this document may be closed without notice.
|
||||
|
||||
Please treat our volunteers with courtesy and respect, it will go a long way towards getting your issue resolved.
|
||||
|
||||
Issues and pull requests should be in English and contain appropriate language for audiences of all ages.
|
||||
Issues and merge requests should be in English and contain appropriate language for audiences of all ages.
|
||||
|
||||
## Issue tracker
|
||||
|
||||
To get support for your particular problem please use the channels as detailed in [the getting help section of the readme](https://github.com/gitlabhq/gitlabhq#getting-help). Professional [support subscriptions](http://www.gitlab.com/subscription/) and [consulting services](http://www.gitlab.com/consultancy/) are available from [GitLab.com](http://www.gitlab.com/).
|
||||
To get support for your particular problem please use the channels as detailed in the [getting help section of the readme](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/README.md#getting-help). Professional [support subscriptions](http://www.gitlab.com/subscription/) and [consulting services](http://www.gitlab.com/consultancy/) are available from [GitLab.com](http://www.gitlab.com/).
|
||||
|
||||
The [issue tracker](https://github.com/gitlabhq/gitlabhq/issues) is only for obvious bugs or misbehavior in the latest [stable or development release of GitLab](MAINTENANCE.md). When submitting an issue please conform to the issue submission guidelines listed below. Not all issues will be addressed and your issue is more likely to be addressed if you submit a pull request which partially or fully addresses the issue.
|
||||
The [issue tracker](https://gitlab.com/gitlab-org/gitlab-ce/issues) is only for obvious errors in the latest [stable or development release of GitLab](MAINTENANCE.md).
|
||||
If something is wrong but it is not a regression compared to older versions of GitLab please do not open an issue but a feature request.
|
||||
When submitting an issue please conform to the issue submission guidelines listed below.
|
||||
Not all issues will be addressed and your issue is more likely to be addressed if you submit a merge request which partially or fully addresses the issue.
|
||||
|
||||
Do not use the issue tracker for feature requests. We have a specific [feedback and suggestions forum](http://feedback.gitlab.com) for this purpose.
|
||||
Issues can be filed either at [gitlab.com](https://gitlab.com/gitlab-org/gitlab-ce/issues) or [github.com](https://github.com/gitlabhq/gitlabhq/issues).
|
||||
|
||||
Please send a pull request with a tested solution or a pull request with a failing test instead of opening an issue if you can. If you're unsure where to post, post to the [mailing list](https://groups.google.com/forum/#!forum/gitlabhq) or [Stack Overflow](http://stackoverflow.com/questions/tagged/gitlab) first. There are a lot of helpful GitLab users there who may be able to help you quickly. If your particular issue turns out to be a bug, it will find its way from there.
|
||||
Do not use the issue tracker for feature requests.
|
||||
We have a specific [feature request forum](http://feedback.gitlab.com) for this purpose.
|
||||
Please keep feature requests as small and simple as possible, complex ones might be edited to make them small and simple.
|
||||
|
||||
Please send a merge request with a tested solution or a merge request with a failing test instead of opening an issue if you can. If you're unsure where to post, post to the [mailing list](https://groups.google.com/forum/#!forum/gitlabhq) or [Stack Overflow](http://stackoverflow.com/questions/tagged/gitlab) first. There are a lot of helpful GitLab users there who may be able to help you quickly. If your particular issue turns out to be a bug, it will find its way from there.
|
||||
|
||||
### Issue tracker guidelines
|
||||
|
||||
**[Search](https://github.com/gitlabhq/gitlabhq/search?q=&ref=cmdform&type=Issues)** for similar entries before submitting your own, there's a good chance somebody else had the same issue. Show your support with `:+1:` and/or join the discussion. Please submit issues in the following format (as the first post):
|
||||
**[Search the issues](https://gitlab.com/gitlab-org/gitlab-ce/issues)** for similar entries before submitting your own, there's a good chance somebody else had the same issue. Show your support with `:+1:` and/or join the discussion. Please submit issues in the following format (as the first post):
|
||||
|
||||
1. **Summary:** Summarize your issue in one sentence (what goes wrong, what did you expect to happen)
|
||||
2. **Steps to reproduce:** How can we reproduce the issue, preferably on the [GitLab Vagrant virtual machine](https://github.com/gitlabhq/gitlab-vagrant-vm) (start with: `vagrant destroy && vagrant up && vagrant ssh`)
|
||||
2. **Steps to reproduce:** How can we reproduce the issue, preferably on the [GitLab development virtual machine with vagrant](https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/doc/development.md) (start your issue with: `vagrant destroy && vagrant up && vagrant ssh`)
|
||||
3. **Expected behavior:** Describe your issue in detail
|
||||
4. **Observed behavior**
|
||||
5. **Relevant logs and/or screenshots:** Please use code blocks (\`\`\`) to format console output, logs, and code as it's very hard to read otherwise.
|
||||
@@ -43,37 +53,64 @@ Please send a pull request with a tested solution or a pull request with a faili
|
||||
* Describe your setup (use relevant parts from `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
|
||||
7. **Possible fixes**: If you can, link to the line of code that might be responsible for the problem
|
||||
|
||||
## Pull requests
|
||||
## Merge requests
|
||||
|
||||
We welcome pull requests with fixes and improvements to GitLab code, tests, and/or documentation. The features we would really like a pull request for are listed with the [status 'accepting merge/pull requests' on our feedback forum](http://feedback.gitlab.com/forums/176466-general/status/796455) but other improvements are also welcome.
|
||||
We welcome merge requests with fixes and improvements to GitLab code, tests, and/or documentation. The features we would really like a merge request for are listed with the [status 'accepting merge requests' on our feature request forum](http://feedback.gitlab.com/forums/176466-general/status/796455) but other improvements are also welcome. If you want to add a new feature that is not marked it is best to first create a feedback issue (if there isn't one already) and leave a comment asking for it to be marked accepting merge requests. Please include screenshots or wireframes if the feature will also change the UI.
|
||||
|
||||
### Pull request guidelines
|
||||
Merge requests can be filed either at [gitlab.com](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests) or [github.com](https://github.com/gitlabhq/gitlabhq/pulls).
|
||||
|
||||
If you can, please submit a pull request with the fix or improvements including tests. If you don't know how to fix the issue but can write a test that exposes the issue we will accept that as well. In general bug fixes that include a regression test are merged quickly while new features without proper tests are least likely to receive timely feedback. The workflow to make a pull request is as follows:
|
||||
### Merge request guidelines
|
||||
|
||||
1. Fork the project on GitHub
|
||||
If you can, please submit a merge request with the fix or improvements including tests. If you don't know how to fix the issue but can write a test that exposes the issue we will accept that as well. In general bug fixes that include a regression test are merged quickly while new features without proper tests are least likely to receive timely feedback. The workflow to make a merge request is as follows:
|
||||
|
||||
1. Fork the project on GitLab Cloud
|
||||
1. Create a feature branch
|
||||
1. Write [tests](README.md#run-the-tests) and code
|
||||
1. Add your changes to the [CHANGELOG](CHANGELOG)
|
||||
1. If you have multiple commits please combine them into one commit by [squashing them](http://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
|
||||
1. Push the commit to your fork
|
||||
1. Submit a pull request
|
||||
2. [Search for issues](https://github.com/gitlabhq/gitlabhq/search?q=&ref=cmdform&type=Issues) related to your pull request and mention them in the pull request description
|
||||
1. Submit a merge request (MR) to the master branch
|
||||
1. The MR title should describes the change you want to make
|
||||
1. The MR description should give a motive for your change and the method you used to achieve it
|
||||
1. If the MR changes the UI it should include before and after screenshots
|
||||
1. If the MR changes CSS classes please include the list of affected pages `grep css-class ./app -R`
|
||||
1. Link relevant [issues](https://gitlab.com/gitlab-org/gitlab-ce/issues) and/or [feature requests](http://feedback.gitlab.com/) from the merge request description and leave a comment on them with a link back to the MR
|
||||
1. Be prepared to answer questions and incorporate feedback even if requests for this arrive weeks or months after your MR submittion
|
||||
1. If your MR touches code that executes shell commands, make sure it adheres to the [shell command guidelines]( doc/development/shell_commands.md).
|
||||
|
||||
We will accept pull requests if:
|
||||
The **official merge window** is in the beginning of the month from the 1st to the 7th day of the month. The best time to submit a MR and get feedback fast. Before this time the GitLab.com team is still dealing with work that is created by the monthly release such as assisting subscribers with upgrade issues, the release of Enterprise Edition and the upgrade of GitLab Cloud. After the 7th it is already getting closer to the release date of the next version. This means there is less time to fix the issues created by merging large new features.
|
||||
|
||||
* The code has proper tests and all tests pass (or it is a test exposing a failure in existing code)
|
||||
* It can be merged without problems (if not please use: `git rebase master`)
|
||||
* It does not break any existing functionality
|
||||
* It's quality code that conforms to the [Ruby](https://github.com/bbatsov/ruby-style-guide) and [Rails](https://github.com/bbatsov/rails-style-guide) style guides and best practices
|
||||
* The description includes a motive for your change and the method you used to achieve it
|
||||
* It is not a catch all pull request but rather fixes a specific issue or implements a specific feature
|
||||
* It keeps the GitLab code base clean and well structured
|
||||
* We think other users will benefit from the same functionality
|
||||
* If it makes changes to the UI the pull request should include screenshots
|
||||
* It is a single commit (please use `git rebase -i` to squash commits)
|
||||
Please keep the change in a single MR **as small as possible**. If you want to contribute a large feature think very hard what the minimum viable change is. Can you split functionality? Can you only submit the backend/API code? Can you start with a very simple UI? The smaller a MR is the more likely it is it will be merged, after that you can send more MR's to enhance it.
|
||||
|
||||
For examples of feedback on pull requests please look at already [closed pull requests](https://github.com/gitlabhq/gitlabhq/pulls?direction=desc&page=1&sort=created&state=closed).
|
||||
For examples of feedback on merge requests please look at already [closed merge requests](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests?assignee_id=&label_name=&milestone_id=&scope=&sort=&state=closed). Please ensure that your merge request meets the following contribution acceptance criteria.
|
||||
|
||||
## Security vulnerabilities
|
||||
Please report security vulnerabilities in private to support@gitlab.com; also see http://www.gitlab.com/disclosure/. Do NOT create GitHub issues for security vulnerabilities.
|
||||
**Please format your merge request description as follows:**
|
||||
|
||||
1. What does this MR do?
|
||||
2. Are there points in the code the reviewer needs to double check?
|
||||
3. Why was this MR needed?
|
||||
4. What are the relevant issue numbers / [Feature requests](http://feedback.gitlab.com/)?
|
||||
5. Screenshots (If appropiate)
|
||||
|
||||
## Contribution acceptance criteria
|
||||
|
||||
1. The change is as small as possible (see the above paragraph for details)
|
||||
1. Include proper tests and make all tests pass (unless it contains a test exposing a bug in existing code)
|
||||
1. Can merge without problems (if not please use: `git rebase master`)
|
||||
1. Does not break any existing functionality
|
||||
1. Fixes one specific issue or implements one specific feature (do not combine things, send separate merge requests if needed)
|
||||
1. Keeps the GitLab code base clean and well structured
|
||||
1. Contains functionality we think other users will benefit from too
|
||||
1. Doesn't add configuration options since they complicate future changes
|
||||
1. Contains a single commit (please use `git rebase -i` to squash commits)
|
||||
1. It conforms to the following style guides
|
||||
|
||||
## Style guides
|
||||
1. [Ruby](https://github.com/bbatsov/ruby-style-guide)
|
||||
1. [Rails](https://github.com/bbatsov/rails-style-guide)
|
||||
1. [Formatting](https://github.com/thoughtbot/guides/tree/master/style#formatting)
|
||||
1. [Naming](https://github.com/thoughtbot/guides/tree/master/style#naming)
|
||||
1. [Testing](https://github.com/thoughtbot/guides/tree/master/style#testing)
|
||||
1. [CoffeeScript](https://github.com/thoughtbot/guides/tree/master/style#coffeescript)
|
||||
1. [Shell commands](doc/development/shell_commands.md)
|
||||
1. [Markdown](http://www.cirosantilli.com/markdown-styleguide)
|
||||
|
||||
@@ -8,15 +8,21 @@ def linux_only(require_as)
|
||||
RUBY_PLATFORM.include?('linux') && require_as
|
||||
end
|
||||
|
||||
gem "rails", "3.2.15"
|
||||
gem "rails", "~> 4.0.0"
|
||||
|
||||
gem "protected_attributes"
|
||||
gem 'rails-observers'
|
||||
|
||||
# Default values for AR models
|
||||
gem "default_value_for", "~> 3.0.0"
|
||||
|
||||
# Supported DBs
|
||||
gem "mysql2", group: :mysql
|
||||
gem "pg", group: :postgres
|
||||
|
||||
# Auth
|
||||
gem "devise", '~> 2.2'
|
||||
gem "devise-async"
|
||||
gem "devise", '3.0.4'
|
||||
gem "devise-async", '0.8.0'
|
||||
gem 'omniauth', "~> 1.1.3"
|
||||
gem 'omniauth-google-oauth2'
|
||||
gem 'omniauth-twitter'
|
||||
@@ -24,26 +30,28 @@ gem 'omniauth-github'
|
||||
|
||||
# Extracting information from a git repository
|
||||
# Provide access to Gitlab::Git library
|
||||
gem "gitlab_git", "~> 3.0.0.rc2"
|
||||
gem "gitlab_git", '~> 5.8'
|
||||
|
||||
# Ruby/Rack Git Smart-HTTP Server Handler
|
||||
gem 'gitlab-grack', '~> 1.0.1', require: 'grack'
|
||||
gem 'gitlab-grack', '~> 2.0.0.pre', require: 'grack'
|
||||
|
||||
# LDAP Auth
|
||||
gem 'gitlab_omniauth-ldap', '1.0.3', require: "omniauth-ldap"
|
||||
|
||||
# Syntax highlighter
|
||||
gem "gitlab-pygments.rb", '~> 0.3.2', require: 'pygments.rb'
|
||||
gem 'gitlab_omniauth-ldap', '1.0.4', require: "omniauth-ldap"
|
||||
|
||||
# Git Wiki
|
||||
gem "gitlab-gollum-lib", "~> 1.0.1", require: 'gollum-lib'
|
||||
gem 'gollum-lib', '~> 3.0.0'
|
||||
|
||||
# Language detection
|
||||
gem "github-linguist", require: "linguist"
|
||||
gem "gitlab-linguist", "~> 3.0.0", require: "linguist"
|
||||
|
||||
# API
|
||||
gem "grape", "~> 0.4.1"
|
||||
gem "grape-entity", "~> 0.3.0"
|
||||
gem "grape", "~> 0.6.1"
|
||||
# Replace with rubygems when nesteted entities get released
|
||||
gem "grape-entity", "~> 0.4.2"
|
||||
gem 'rack-cors', require: 'rack/cors'
|
||||
|
||||
# Email validation
|
||||
gem "email_validator", "~> 1.4.0", :require => 'email_validator/strict'
|
||||
|
||||
# Format dates and times
|
||||
# based on human-friendly examples
|
||||
@@ -53,7 +61,7 @@ gem "stamp"
|
||||
gem 'enumerize'
|
||||
|
||||
# Pagination
|
||||
gem "kaminari", "~> 0.14.1"
|
||||
gem "kaminari", "~> 0.15.1"
|
||||
|
||||
# HAML
|
||||
gem "haml-rails"
|
||||
@@ -62,7 +70,8 @@ gem "haml-rails"
|
||||
gem "carrierwave"
|
||||
|
||||
# for aws storage
|
||||
gem "fog", "~> 1.3.1", group: :aws
|
||||
gem "fog", "~> 1.14", group: :aws
|
||||
gem "unf", group: :aws
|
||||
|
||||
# Authorization
|
||||
gem "six"
|
||||
@@ -72,13 +81,19 @@ gem "seed-fu"
|
||||
|
||||
# Markdown to HTML
|
||||
gem "redcarpet", "~> 2.2.2"
|
||||
gem "github-markup", "~> 0.7.4", require: 'github/markup'
|
||||
gem "github-markup"
|
||||
|
||||
# Diffs
|
||||
gem 'diffy', '~> 3.0.3'
|
||||
|
||||
# Asciidoc to HTML
|
||||
gem "asciidoctor"
|
||||
|
||||
# Application server
|
||||
gem "unicorn", '~> 4.6.3', group: :unicorn
|
||||
group :unicorn do
|
||||
gem "unicorn", '~> 4.6.3'
|
||||
gem 'unicorn-worker-killer'
|
||||
end
|
||||
|
||||
# State machine
|
||||
gem "state_machine"
|
||||
@@ -89,7 +104,7 @@ gem "acts-as-taggable-on"
|
||||
# Background jobs
|
||||
gem 'slim'
|
||||
gem 'sinatra', require: nil
|
||||
gem 'sidekiq'
|
||||
gem 'sidekiq', '2.17.0'
|
||||
|
||||
# HTTP requests
|
||||
gem "httparty"
|
||||
@@ -102,6 +117,7 @@ gem 'settingslogic'
|
||||
|
||||
# Misc
|
||||
gem "foreman"
|
||||
gem 'version_sorter'
|
||||
|
||||
# Cache
|
||||
gem "redis-rails"
|
||||
@@ -110,11 +126,17 @@ gem "redis-rails"
|
||||
gem 'tinder', '~> 1.9.2'
|
||||
|
||||
# HipChat integration
|
||||
gem "hipchat", "~> 0.9.0"
|
||||
gem "hipchat", "~> 0.14.0"
|
||||
|
||||
# Flowdock integration
|
||||
gem "gitlab-flowdock-git-hook", "~> 0.4.2"
|
||||
|
||||
# Gemnasium integration
|
||||
gem "gemnasium-gitlab-service", "~> 0.2"
|
||||
|
||||
# Slack integration
|
||||
gem "slack-notifier", "~> 0.3.2"
|
||||
|
||||
# d3
|
||||
gem "d3_rails", "~> 3.1.4"
|
||||
|
||||
@@ -122,37 +144,37 @@ gem "d3_rails", "~> 3.1.4"
|
||||
gem "underscore-rails", "~> 1.4.4"
|
||||
|
||||
# Sanitize user input
|
||||
gem "sanitize"
|
||||
gem "sanitize", '~> 2.0'
|
||||
|
||||
# Protect against bruteforcing
|
||||
gem "rack-attack"
|
||||
|
||||
group :assets do
|
||||
gem "sass-rails"
|
||||
gem "coffee-rails"
|
||||
gem "uglifier"
|
||||
gem "therubyracer"
|
||||
gem 'turbolinks'
|
||||
gem 'jquery-turbolinks'
|
||||
# Ace editor
|
||||
gem 'ace-rails-ap'
|
||||
|
||||
gem 'chosen-rails', "1.0.0"
|
||||
gem 'select2-rails'
|
||||
gem 'jquery-atwho-rails', "0.3.0"
|
||||
gem "jquery-rails", "2.1.3"
|
||||
gem "jquery-ui-rails", "2.0.2"
|
||||
gem "modernizr", "2.6.2"
|
||||
gem "raphael-rails", "~> 2.1.2"
|
||||
gem 'bootstrap-sass'
|
||||
gem "font-awesome-rails"
|
||||
gem "gemoji", "~> 1.2.1", require: 'emoji/railtie'
|
||||
gem "gon"
|
||||
end
|
||||
gem "sass-rails", '~> 4.0.2'
|
||||
gem "coffee-rails"
|
||||
gem "uglifier"
|
||||
gem "therubyracer"
|
||||
gem 'turbolinks'
|
||||
gem 'jquery-turbolinks'
|
||||
|
||||
gem 'select2-rails'
|
||||
gem 'jquery-atwho-rails', "~> 0.3.3"
|
||||
gem "jquery-rails"
|
||||
gem "jquery-ui-rails"
|
||||
gem "raphael-rails", "~> 2.1.2"
|
||||
gem 'bootstrap-sass', '~> 3.0'
|
||||
gem "font-awesome-rails", '~> 3.2'
|
||||
gem "gitlab_emoji", "~> 0.0.1.1"
|
||||
gem "gon", '~> 5.0.0'
|
||||
gem 'nprogress-rails'
|
||||
|
||||
group :development do
|
||||
gem "annotate", "~> 2.6.0.beta2"
|
||||
gem "letter_opener"
|
||||
gem 'quiet_assets', '~> 1.0.1'
|
||||
gem 'rack-mini-profiler'
|
||||
gem 'rack-mini-profiler', require: false
|
||||
|
||||
# Better errors handler
|
||||
gem 'better_errors'
|
||||
@@ -169,7 +191,7 @@ end
|
||||
|
||||
group :development, :test do
|
||||
gem 'coveralls', require: false
|
||||
gem 'rails-dev-tweaks'
|
||||
# gem 'rails-dev-tweaks'
|
||||
gem 'spinach-rails'
|
||||
gem "rspec-rails"
|
||||
gem "capybara"
|
||||
@@ -197,8 +219,11 @@ group :development, :test do
|
||||
# PhantomJS driver for Capybara
|
||||
gem 'poltergeist', '~> 1.4.1'
|
||||
|
||||
gem 'spork', '~> 1.0rc'
|
||||
gem 'jasmine'
|
||||
gem 'jasmine', '2.0.0.rc5'
|
||||
|
||||
gem "spring", '1.1.1'
|
||||
gem "spring-commands-rspec", '1.0.1'
|
||||
gem "spring-commands-spinach", '1.0.0'
|
||||
end
|
||||
|
||||
group :test do
|
||||
|
||||
@@ -1,198 +1,201 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
actionmailer (3.2.15)
|
||||
actionpack (= 3.2.15)
|
||||
ace-rails-ap (2.0.1)
|
||||
actionmailer (4.0.5)
|
||||
actionpack (= 4.0.5)
|
||||
mail (~> 2.5.4)
|
||||
actionpack (3.2.15)
|
||||
activemodel (= 3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
builder (~> 3.0.0)
|
||||
actionpack (4.0.5)
|
||||
activesupport (= 4.0.5)
|
||||
builder (~> 3.1.0)
|
||||
erubis (~> 2.7.0)
|
||||
journey (~> 1.0.4)
|
||||
rack (~> 1.4.5)
|
||||
rack-cache (~> 1.2)
|
||||
rack-test (~> 0.6.1)
|
||||
sprockets (~> 2.2.1)
|
||||
activemodel (3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
builder (~> 3.0.0)
|
||||
activerecord (3.2.15)
|
||||
activemodel (= 3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
arel (~> 3.0.2)
|
||||
tzinfo (~> 0.3.29)
|
||||
activeresource (3.2.15)
|
||||
activemodel (= 3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
activesupport (3.2.15)
|
||||
i18n (~> 0.6, >= 0.6.4)
|
||||
multi_json (~> 1.0)
|
||||
rack (~> 1.5.2)
|
||||
rack-test (~> 0.6.2)
|
||||
activemodel (4.0.5)
|
||||
activesupport (= 4.0.5)
|
||||
builder (~> 3.1.0)
|
||||
activerecord (4.0.5)
|
||||
activemodel (= 4.0.5)
|
||||
activerecord-deprecated_finders (~> 1.0.2)
|
||||
activesupport (= 4.0.5)
|
||||
arel (~> 4.0.0)
|
||||
activerecord-deprecated_finders (1.0.3)
|
||||
activesupport (4.0.5)
|
||||
i18n (~> 0.6, >= 0.6.9)
|
||||
minitest (~> 4.2)
|
||||
multi_json (~> 1.3)
|
||||
thread_safe (~> 0.1)
|
||||
tzinfo (~> 0.3.37)
|
||||
acts-as-taggable-on (2.4.1)
|
||||
rails (>= 3, < 5)
|
||||
addressable (2.3.4)
|
||||
annotate (2.6.0.beta2)
|
||||
addressable (2.3.5)
|
||||
annotate (2.6.0)
|
||||
activerecord (>= 2.3.0)
|
||||
rake (>= 0.8.7)
|
||||
arel (3.0.2)
|
||||
asciidoctor (0.1.3)
|
||||
arel (4.0.2)
|
||||
asciidoctor (0.1.4)
|
||||
awesome_print (1.2.0)
|
||||
backports (3.3.2)
|
||||
bcrypt-ruby (3.1.1)
|
||||
axiom-types (0.0.5)
|
||||
descendants_tracker (~> 0.0.1)
|
||||
ice_nine (~> 0.9)
|
||||
bcrypt-ruby (3.1.2)
|
||||
better_errors (1.0.1)
|
||||
coderay (>= 1.0.0)
|
||||
erubis (>= 2.6.6)
|
||||
binding_of_caller (0.7.2)
|
||||
debug_inspector (>= 0.0.1)
|
||||
bootstrap-sass (2.3.2.2)
|
||||
bootstrap-sass (3.0.3.0)
|
||||
sass (~> 3.2)
|
||||
builder (3.0.4)
|
||||
builder (3.1.4)
|
||||
capybara (2.1.0)
|
||||
mime-types (>= 1.16)
|
||||
nokogiri (>= 1.3.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-test (>= 0.5.4)
|
||||
xpath (~> 2.0)
|
||||
carrierwave (0.8.0)
|
||||
carrierwave (0.9.0)
|
||||
activemodel (>= 3.2.0)
|
||||
activesupport (>= 3.2.0)
|
||||
celluloid (0.14.1)
|
||||
timers (>= 1.0.0)
|
||||
json (>= 1.7)
|
||||
celluloid (0.15.2)
|
||||
timers (~> 1.1.0)
|
||||
charlock_holmes (0.6.9.4)
|
||||
childprocess (0.3.9)
|
||||
ffi (~> 1.0, >= 1.0.11)
|
||||
chosen-rails (1.0.0)
|
||||
coffee-rails (>= 3.2)
|
||||
compass-rails (>= 1.0)
|
||||
railties (>= 3.0)
|
||||
sass-rails (>= 3.2)
|
||||
chunky_png (1.2.8)
|
||||
cliver (0.2.1)
|
||||
cliver (0.2.2)
|
||||
code_analyzer (0.4.3)
|
||||
sexp_processor
|
||||
coderay (1.0.9)
|
||||
coffee-rails (3.2.2)
|
||||
coderay (1.1.0)
|
||||
coercible (1.0.0)
|
||||
descendants_tracker (~> 0.0.1)
|
||||
coffee-rails (4.0.1)
|
||||
coffee-script (>= 2.2.0)
|
||||
railties (~> 3.2.0)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
coffee-script (2.2.0)
|
||||
coffee-script-source
|
||||
execjs
|
||||
coffee-script-source (1.6.2)
|
||||
coffee-script-source (1.6.3)
|
||||
colored (1.2)
|
||||
colorize (0.5.8)
|
||||
compass (0.12.2)
|
||||
chunky_png (~> 1.2)
|
||||
fssm (>= 0.2.7)
|
||||
sass (~> 3.1)
|
||||
compass-rails (1.0.3)
|
||||
compass (>= 0.12.2, < 0.14)
|
||||
connection_pool (1.1.0)
|
||||
connection_pool (1.2.0)
|
||||
coveralls (0.7.0)
|
||||
multi_json (~> 1.3)
|
||||
rest-client
|
||||
simplecov (>= 0.7)
|
||||
term-ansicolor
|
||||
thor
|
||||
crack (0.4.0)
|
||||
crack (0.4.1)
|
||||
safe_yaml (~> 0.9.0)
|
||||
d3_rails (3.1.10)
|
||||
railties (>= 3.1.0)
|
||||
daemons (1.1.9)
|
||||
database_cleaner (1.1.1)
|
||||
database_cleaner (1.2.0)
|
||||
debug_inspector (0.0.2)
|
||||
descendants_tracker (0.0.1)
|
||||
devise (2.2.5)
|
||||
default_value_for (3.0.0)
|
||||
activerecord (>= 3.2.0, < 5.0)
|
||||
descendants_tracker (0.0.3)
|
||||
devise (3.0.4)
|
||||
bcrypt-ruby (~> 3.0)
|
||||
orm_adapter (~> 0.1)
|
||||
railties (~> 3.1)
|
||||
warden (~> 1.2.1)
|
||||
railties (>= 3.2.6, < 5)
|
||||
warden (~> 1.2.3)
|
||||
devise-async (0.8.0)
|
||||
devise (>= 2.2, < 3.2)
|
||||
diff-lcs (1.2.4)
|
||||
dotenv (0.8.0)
|
||||
email_spec (1.4.0)
|
||||
diff-lcs (1.2.5)
|
||||
diffy (3.0.3)
|
||||
docile (1.1.1)
|
||||
dotenv (0.9.0)
|
||||
email_spec (1.5.0)
|
||||
launchy (~> 2.1)
|
||||
mail (~> 2.2)
|
||||
enumerize (0.6.1)
|
||||
email_validator (1.4.0)
|
||||
activemodel
|
||||
emoji (1.0.1)
|
||||
json
|
||||
enumerize (0.7.0)
|
||||
activesupport (>= 3.2)
|
||||
equalizer (0.0.8)
|
||||
erubis (2.7.0)
|
||||
escape_utils (0.2.4)
|
||||
eventmachine (1.0.3)
|
||||
excon (0.13.4)
|
||||
execjs (1.4.0)
|
||||
multi_json (~> 1.0)
|
||||
factory_girl (4.2.0)
|
||||
excon (0.32.1)
|
||||
execjs (2.0.2)
|
||||
factory_girl (4.3.0)
|
||||
activesupport (>= 3.0.0)
|
||||
factory_girl_rails (4.2.1)
|
||||
factory_girl (~> 4.2.0)
|
||||
factory_girl_rails (4.3.0)
|
||||
factory_girl (~> 4.3.0)
|
||||
railties (>= 3.0.0)
|
||||
faraday (0.8.7)
|
||||
multipart-post (~> 1.1)
|
||||
faraday (0.8.8)
|
||||
multipart-post (~> 1.2.0)
|
||||
faraday_middleware (0.9.0)
|
||||
faraday (>= 0.7.4, < 0.9)
|
||||
ffaker (1.18.0)
|
||||
ffi (1.9.0)
|
||||
fog (1.3.1)
|
||||
ffaker (1.22.1)
|
||||
ffi (1.9.3)
|
||||
fog (1.21.0)
|
||||
fog-brightbox
|
||||
fog-core (~> 1.21, >= 1.21.1)
|
||||
fog-json
|
||||
nokogiri (~> 1.5, >= 1.5.11)
|
||||
fog-brightbox (0.0.1)
|
||||
fog-core
|
||||
fog-json
|
||||
fog-core (1.21.1)
|
||||
builder
|
||||
excon (~> 0.13.0)
|
||||
excon (~> 0.32)
|
||||
formatador (~> 0.2.0)
|
||||
mime-types
|
||||
multi_json (~> 1.0)
|
||||
net-scp (~> 1.0.4)
|
||||
net-scp (~> 1.1)
|
||||
net-ssh (>= 2.1.3)
|
||||
nokogiri (~> 1.5.0)
|
||||
ruby-hmac
|
||||
fog-json (1.0.0)
|
||||
multi_json (~> 1.0)
|
||||
font-awesome-rails (3.2.1.3)
|
||||
railties (>= 3.2, < 5.0)
|
||||
foreman (0.63.0)
|
||||
dotenv (>= 0.7)
|
||||
thor (>= 0.13.6)
|
||||
formatador (0.2.4)
|
||||
fssm (0.2.10)
|
||||
gemoji (1.2.1)
|
||||
gherkin-ruby (0.3.0)
|
||||
github-linguist (2.3.4)
|
||||
charlock_holmes (~> 0.6.6)
|
||||
escape_utils (~> 0.2.3)
|
||||
mime-types (~> 1.19)
|
||||
pygments.rb (>= 0.2.13)
|
||||
github-markdown (0.5.3)
|
||||
github-markup (0.7.5)
|
||||
gemnasium-gitlab-service (0.2.1)
|
||||
rugged (~> 0.19)
|
||||
gherkin-ruby (0.3.1)
|
||||
racc
|
||||
github-markup (1.1.0)
|
||||
gitlab-flowdock-git-hook (0.4.2.2)
|
||||
gitlab-grit (>= 2.4.1)
|
||||
multi_json
|
||||
gitlab-gollum-lib (1.0.1)
|
||||
github-markdown (~> 0.5.3)
|
||||
github-markup (>= 0.7.5, < 1.0.0)
|
||||
gitlab-grit (>= 2.5.1)
|
||||
nokogiri (~> 1.5.9)
|
||||
pygments.rb (~> 0.4.2)
|
||||
sanitize (~> 2.0.3)
|
||||
stringex (~> 1.5.1)
|
||||
gitlab-grack (1.0.1)
|
||||
rack (~> 1.4.1)
|
||||
gitlab-grit (2.6.1)
|
||||
charlock_holmes (~> 0.6.9)
|
||||
gitlab-grack (2.0.0.pre)
|
||||
rack (~> 1.5.1)
|
||||
gitlab-grit (2.6.7)
|
||||
charlock_holmes (~> 0.6)
|
||||
diff-lcs (~> 1.1)
|
||||
mime-types (~> 1.15)
|
||||
posix-spawn (~> 0.3.6)
|
||||
gitlab-pygments.rb (0.3.2)
|
||||
posix-spawn (~> 0.3.6)
|
||||
yajl-ruby (~> 1.1.0)
|
||||
gitlab_git (3.0.0.rc2)
|
||||
activesupport (~> 3.2.13)
|
||||
github-linguist (~> 2.3.4)
|
||||
gitlab-grit (~> 2.6.1)
|
||||
posix-spawn (~> 0.3)
|
||||
gitlab-linguist (3.0.0)
|
||||
charlock_holmes (~> 0.6.6)
|
||||
escape_utils (~> 0.2.4)
|
||||
mime-types (~> 1.19)
|
||||
gitlab_emoji (0.0.1.1)
|
||||
emoji (~> 1.0.1)
|
||||
gitlab_git (5.8.0)
|
||||
activesupport (~> 4.0)
|
||||
charlock_holmes (~> 0.6)
|
||||
gitlab-grit (~> 2.6)
|
||||
gitlab-linguist (~> 3.0)
|
||||
rugged (~> 0.19.0)
|
||||
gitlab_meta (6.0)
|
||||
gitlab_omniauth-ldap (1.0.3)
|
||||
gitlab_omniauth-ldap (1.0.4)
|
||||
net-ldap (~> 0.3.1)
|
||||
omniauth (~> 1.0)
|
||||
pyu-ruby-sasl (~> 0.0.3.1)
|
||||
rubyntlm (~> 0.1.1)
|
||||
gon (4.1.1)
|
||||
gollum-lib (3.0.0)
|
||||
github-markup (~> 1.1.0)
|
||||
gitlab-grit (~> 2.6.5)
|
||||
nokogiri (~> 1.6.1)
|
||||
rouge (~> 1.3.3)
|
||||
sanitize (~> 2.1.0)
|
||||
stringex (~> 2.5.1)
|
||||
gon (5.0.1)
|
||||
actionpack (>= 2.3.0)
|
||||
json
|
||||
grape (0.4.1)
|
||||
grape (0.6.1)
|
||||
activesupport
|
||||
builder
|
||||
hashie (>= 1.2.0)
|
||||
@@ -201,92 +204,92 @@ GEM
|
||||
rack (>= 1.3.0)
|
||||
rack-accept
|
||||
rack-mount
|
||||
virtus
|
||||
grape-entity (0.3.0)
|
||||
virtus (>= 1.0.0)
|
||||
grape-entity (0.4.2)
|
||||
activesupport
|
||||
multi_json (>= 1.3.2)
|
||||
growl (1.0.3)
|
||||
guard (1.8.1)
|
||||
guard (2.2.4)
|
||||
formatador (>= 0.2.4)
|
||||
listen (>= 1.0.0)
|
||||
lumberjack (>= 1.0.2)
|
||||
pry (>= 0.9.10)
|
||||
thor (>= 0.14.6)
|
||||
guard-rspec (3.0.2)
|
||||
guard (>= 1.8)
|
||||
rspec (~> 2.13)
|
||||
listen (~> 2.1)
|
||||
lumberjack (~> 1.0)
|
||||
pry (>= 0.9.12)
|
||||
thor (>= 0.18.1)
|
||||
guard-rspec (4.2.0)
|
||||
guard (>= 2.1.1)
|
||||
rspec (>= 2.14, < 4.0)
|
||||
guard-spinach (0.0.2)
|
||||
guard (>= 1.1)
|
||||
spinach
|
||||
haml (4.0.3)
|
||||
haml (4.0.4)
|
||||
tilt
|
||||
haml-rails (0.4)
|
||||
actionpack (>= 3.1, < 4.1)
|
||||
activesupport (>= 3.1, < 4.1)
|
||||
haml (>= 3.1, < 4.1)
|
||||
railties (>= 3.1, < 4.1)
|
||||
hashie (1.2.0)
|
||||
haml-rails (0.5.1)
|
||||
actionpack (~> 4.0.0)
|
||||
activesupport (~> 4.0.0)
|
||||
haml (>= 3.1, < 5.0)
|
||||
railties (~> 4.0.0)
|
||||
hashie (2.0.5)
|
||||
hike (1.2.3)
|
||||
hipchat (0.9.0)
|
||||
hipchat (0.14.0)
|
||||
httparty
|
||||
httparty
|
||||
http_parser.rb (0.5.3)
|
||||
httparty (0.11.0)
|
||||
multi_json (~> 1.0)
|
||||
httparty (0.13.0)
|
||||
json (~> 1.8)
|
||||
multi_xml (>= 0.5.2)
|
||||
httpauth (0.2.0)
|
||||
i18n (0.6.5)
|
||||
jasmine (1.3.2)
|
||||
jasmine-core (~> 1.3.1)
|
||||
rack (~> 1.0)
|
||||
rspec (>= 1.3.1)
|
||||
selenium-webdriver (>= 0.1.3)
|
||||
jasmine-core (1.3.1)
|
||||
journey (1.0.4)
|
||||
jquery-atwho-rails (0.3.0)
|
||||
jquery-rails (2.1.3)
|
||||
railties (>= 3.1.0, < 5.0)
|
||||
thor (~> 0.14)
|
||||
jquery-turbolinks (1.0.0)
|
||||
i18n (0.6.9)
|
||||
ice_nine (0.10.0)
|
||||
jasmine (2.0.0.rc5)
|
||||
jasmine-core (~> 2.0.0.rc5)
|
||||
phantomjs
|
||||
rack (>= 1.2.1)
|
||||
rake
|
||||
jasmine-core (2.0.0.rc5)
|
||||
jquery-atwho-rails (0.3.3)
|
||||
jquery-rails (3.1.0)
|
||||
railties (>= 3.0, < 5.0)
|
||||
thor (>= 0.14, < 2.0)
|
||||
jquery-turbolinks (2.0.1)
|
||||
railties (>= 3.1.0)
|
||||
turbolinks
|
||||
jquery-ui-rails (2.0.2)
|
||||
jquery-rails
|
||||
railties (>= 3.1.0)
|
||||
json (1.7.7)
|
||||
jquery-ui-rails (4.2.1)
|
||||
railties (>= 3.2.16)
|
||||
json (1.8.1)
|
||||
jwt (0.1.8)
|
||||
multi_json (>= 1.5)
|
||||
kaminari (0.14.1)
|
||||
kaminari (0.15.1)
|
||||
actionpack (>= 3.0.0)
|
||||
activesupport (>= 3.0.0)
|
||||
kgio (2.8.0)
|
||||
launchy (2.3.0)
|
||||
kgio (2.8.1)
|
||||
launchy (2.4.2)
|
||||
addressable (~> 2.3)
|
||||
letter_opener (1.1.1)
|
||||
letter_opener (1.1.2)
|
||||
launchy (~> 2.2)
|
||||
libv8 (3.11.8.17)
|
||||
listen (1.2.2)
|
||||
libv8 (3.16.14.3)
|
||||
listen (2.3.1)
|
||||
celluloid (>= 0.15.2)
|
||||
rb-fsevent (>= 0.9.3)
|
||||
rb-inotify (>= 0.9)
|
||||
rb-kqueue (>= 0.2)
|
||||
lumberjack (1.0.3)
|
||||
lumberjack (1.0.4)
|
||||
mail (2.5.4)
|
||||
mime-types (~> 1.16)
|
||||
treetop (~> 1.4.8)
|
||||
method_source (0.8.1)
|
||||
mime-types (1.25)
|
||||
minitest (4.7.4)
|
||||
modernizr (2.6.2)
|
||||
sprockets (~> 2.0)
|
||||
multi_json (1.8.2)
|
||||
multi_xml (0.5.4)
|
||||
method_source (0.8.2)
|
||||
mime-types (1.25.1)
|
||||
mini_portile (0.5.3)
|
||||
minitest (4.7.5)
|
||||
multi_json (1.10.0)
|
||||
multi_xml (0.5.5)
|
||||
multipart-post (1.2.0)
|
||||
mysql2 (0.3.11)
|
||||
net-ldap (0.3.1)
|
||||
net-scp (1.0.4)
|
||||
net-ssh (>= 1.99.1)
|
||||
net-ssh (2.6.8)
|
||||
nokogiri (1.5.10)
|
||||
net-scp (1.1.2)
|
||||
net-ssh (>= 2.6.5)
|
||||
net-ssh (2.8.0)
|
||||
nokogiri (1.6.1)
|
||||
mini_portile (~> 0.5.0)
|
||||
nprogress-rails (0.1.2.3)
|
||||
oauth (0.4.7)
|
||||
oauth2 (0.8.1)
|
||||
faraday (~> 0.8)
|
||||
@@ -297,10 +300,10 @@ GEM
|
||||
omniauth (1.1.4)
|
||||
hashie (>= 1.2, < 3)
|
||||
rack
|
||||
omniauth-github (1.1.0)
|
||||
omniauth-github (1.1.1)
|
||||
omniauth (~> 1.0)
|
||||
omniauth-oauth2 (~> 1.1)
|
||||
omniauth-google-oauth2 (0.1.19)
|
||||
omniauth-google-oauth2 (0.2.1)
|
||||
omniauth (~> 1.0)
|
||||
omniauth-oauth2
|
||||
omniauth-oauth (1.0.1)
|
||||
@@ -309,56 +312,53 @@ GEM
|
||||
omniauth-oauth2 (1.1.1)
|
||||
oauth2 (~> 0.8.0)
|
||||
omniauth (~> 1.0)
|
||||
omniauth-twitter (0.0.17)
|
||||
omniauth-twitter (1.0.1)
|
||||
multi_json (~> 1.3)
|
||||
omniauth-oauth (~> 1.0)
|
||||
orm_adapter (0.4.0)
|
||||
orm_adapter (0.5.0)
|
||||
pg (0.15.1)
|
||||
phantomjs (1.9.2.0)
|
||||
poltergeist (1.4.1)
|
||||
capybara (~> 2.1.0)
|
||||
cliver (~> 0.2.1)
|
||||
multi_json (~> 1.0)
|
||||
websocket-driver (>= 0.2.0)
|
||||
polyglot (0.3.3)
|
||||
posix-spawn (0.3.6)
|
||||
pry (0.9.12.2)
|
||||
coderay (~> 1.0.5)
|
||||
polyglot (0.3.4)
|
||||
posix-spawn (0.3.8)
|
||||
protected_attributes (1.0.5)
|
||||
activemodel (>= 4.0.1, < 5.0)
|
||||
pry (0.9.12.4)
|
||||
coderay (~> 1.0)
|
||||
method_source (~> 0.8)
|
||||
slop (~> 3.4)
|
||||
pygments.rb (0.4.2)
|
||||
posix-spawn (~> 0.3.6)
|
||||
yajl-ruby (~> 1.1.0)
|
||||
pyu-ruby-sasl (0.0.3.3)
|
||||
quiet_assets (1.0.2)
|
||||
railties (>= 3.1, < 5.0)
|
||||
rack (1.4.5)
|
||||
racc (1.4.10)
|
||||
rack (1.5.2)
|
||||
rack-accept (0.4.5)
|
||||
rack (>= 0.4)
|
||||
rack-attack (2.2.1)
|
||||
rack-attack (2.3.0)
|
||||
rack
|
||||
rack-cache (1.2)
|
||||
rack (>= 0.4)
|
||||
rack-mini-profiler (0.1.31)
|
||||
rack-cors (0.2.9)
|
||||
rack-mini-profiler (0.9.0)
|
||||
rack (>= 1.1.3)
|
||||
rack-mount (0.8.3)
|
||||
rack (>= 1.0.0)
|
||||
rack-protection (1.5.0)
|
||||
rack
|
||||
rack-ssl (1.3.3)
|
||||
rack-protection (1.5.1)
|
||||
rack
|
||||
rack-test (0.6.2)
|
||||
rack (>= 1.0)
|
||||
rails (3.2.15)
|
||||
actionmailer (= 3.2.15)
|
||||
actionpack (= 3.2.15)
|
||||
activerecord (= 3.2.15)
|
||||
activeresource (= 3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
bundler (~> 1.0)
|
||||
railties (= 3.2.15)
|
||||
rails-dev-tweaks (0.6.1)
|
||||
actionpack (~> 3.1)
|
||||
railties (~> 3.1)
|
||||
rails (4.0.5)
|
||||
actionmailer (= 4.0.5)
|
||||
actionpack (= 4.0.5)
|
||||
activerecord (= 4.0.5)
|
||||
activesupport (= 4.0.5)
|
||||
bundler (>= 1.3.0, < 2.0)
|
||||
railties (= 4.0.5)
|
||||
sprockets-rails (~> 2.0.0)
|
||||
rails-observers (0.1.2)
|
||||
activemodel (~> 4.0)
|
||||
rails_best_practices (1.14.4)
|
||||
activesupport
|
||||
awesome_print
|
||||
@@ -368,254 +368,267 @@ GEM
|
||||
i18n
|
||||
require_all
|
||||
ruby-progressbar
|
||||
railties (3.2.15)
|
||||
actionpack (= 3.2.15)
|
||||
activesupport (= 3.2.15)
|
||||
rack-ssl (~> 1.3.2)
|
||||
railties (4.0.5)
|
||||
actionpack (= 4.0.5)
|
||||
activesupport (= 4.0.5)
|
||||
rake (>= 0.8.7)
|
||||
rdoc (~> 3.4)
|
||||
thor (>= 0.14.6, < 2.0)
|
||||
raindrops (0.11.0)
|
||||
rake (10.1.0)
|
||||
thor (>= 0.18.1, < 2.0)
|
||||
raindrops (0.12.0)
|
||||
rake (10.3.1)
|
||||
raphael-rails (2.1.2)
|
||||
rb-fsevent (0.9.3)
|
||||
rb-inotify (0.9.0)
|
||||
ffi (>= 0.5.0)
|
||||
rb-kqueue (0.2.0)
|
||||
rb-inotify (0.9.2)
|
||||
ffi (>= 0.5.0)
|
||||
rdoc (3.12.2)
|
||||
json (~> 1.4)
|
||||
redcarpet (2.2.2)
|
||||
redis (3.0.4)
|
||||
redis-actionpack (3.2.4)
|
||||
actionpack (~> 3.2.0)
|
||||
redis-rack (~> 1.4.4)
|
||||
redis-store (~> 1.1.4)
|
||||
redis-activesupport (3.2.4)
|
||||
activesupport (~> 3.2.0)
|
||||
redis (3.0.6)
|
||||
redis-actionpack (4.0.0)
|
||||
actionpack (~> 4)
|
||||
redis-rack (~> 1.5.0)
|
||||
redis-store (~> 1.1.0)
|
||||
redis-activesupport (4.0.0)
|
||||
activesupport (~> 4)
|
||||
redis-store (~> 1.1.0)
|
||||
redis-namespace (1.4.1)
|
||||
redis (~> 3.0.4)
|
||||
redis-rack (1.5.0)
|
||||
rack (~> 1.5)
|
||||
redis-store (~> 1.1.0)
|
||||
redis-rails (4.0.0)
|
||||
redis-actionpack (~> 4)
|
||||
redis-activesupport (~> 4)
|
||||
redis-store (~> 1.1.0)
|
||||
redis-namespace (1.3.1)
|
||||
redis (~> 3.0.0)
|
||||
redis-rack (1.4.4)
|
||||
rack (~> 1.4.0)
|
||||
redis-store (~> 1.1.4)
|
||||
redis-rails (3.2.4)
|
||||
redis-actionpack (~> 3.2.4)
|
||||
redis-activesupport (~> 3.2.4)
|
||||
redis-store (~> 1.1.4)
|
||||
redis-store (1.1.4)
|
||||
redis (>= 2.2)
|
||||
ref (1.0.5)
|
||||
require_all (1.3.1)
|
||||
require_all (1.3.2)
|
||||
rest-client (1.6.7)
|
||||
mime-types (>= 1.16)
|
||||
rspec (2.13.0)
|
||||
rspec-core (~> 2.13.0)
|
||||
rspec-expectations (~> 2.13.0)
|
||||
rspec-mocks (~> 2.13.0)
|
||||
rspec-core (2.13.1)
|
||||
rspec-expectations (2.13.0)
|
||||
rouge (1.3.3)
|
||||
rspec (2.14.1)
|
||||
rspec-core (~> 2.14.0)
|
||||
rspec-expectations (~> 2.14.0)
|
||||
rspec-mocks (~> 2.14.0)
|
||||
rspec-core (2.14.7)
|
||||
rspec-expectations (2.14.4)
|
||||
diff-lcs (>= 1.1.3, < 2.0)
|
||||
rspec-mocks (2.13.1)
|
||||
rspec-rails (2.13.2)
|
||||
rspec-mocks (2.14.4)
|
||||
rspec-rails (2.14.0)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
railties (>= 3.0)
|
||||
rspec-core (~> 2.13.0)
|
||||
rspec-expectations (~> 2.13.0)
|
||||
rspec-mocks (~> 2.13.0)
|
||||
ruby-hmac (0.4.0)
|
||||
rspec-core (~> 2.14.0)
|
||||
rspec-expectations (~> 2.14.0)
|
||||
rspec-mocks (~> 2.14.0)
|
||||
ruby-progressbar (1.2.0)
|
||||
rubyntlm (0.1.1)
|
||||
rubyzip (0.9.9)
|
||||
safe_yaml (0.9.3)
|
||||
sanitize (2.0.3)
|
||||
nokogiri (>= 1.4.4, < 1.6)
|
||||
sass (3.2.11)
|
||||
sass-rails (3.2.6)
|
||||
railties (~> 3.2.0)
|
||||
sass (>= 3.1.10)
|
||||
tilt (~> 1.3)
|
||||
rugged (0.19.0)
|
||||
safe_yaml (0.9.7)
|
||||
sanitize (2.1.0)
|
||||
nokogiri (>= 1.4.4)
|
||||
sass (3.2.19)
|
||||
sass-rails (4.0.3)
|
||||
railties (>= 4.0.0, < 5.0)
|
||||
sass (~> 3.2.0)
|
||||
sprockets (~> 2.8, <= 2.11.0)
|
||||
sprockets-rails (~> 2.0)
|
||||
sdoc (0.3.20)
|
||||
json (>= 1.1.3)
|
||||
rdoc (~> 3.10)
|
||||
seed-fu (2.2.0)
|
||||
activerecord (~> 3.1)
|
||||
activesupport (~> 3.1)
|
||||
select2-rails (3.4.2)
|
||||
sass-rails
|
||||
seed-fu (2.3.0)
|
||||
activerecord (>= 3.1, < 4.1)
|
||||
activesupport (>= 3.1, < 4.1)
|
||||
select2-rails (3.5.2)
|
||||
thor (~> 0.14)
|
||||
selenium-webdriver (2.33.0)
|
||||
childprocess (>= 0.2.5)
|
||||
multi_json (~> 1.0)
|
||||
rubyzip
|
||||
websocket (~> 1.0.4)
|
||||
settingslogic (2.0.9)
|
||||
sexp_processor (4.3.0)
|
||||
sexp_processor (4.4.0)
|
||||
shoulda-matchers (2.1.0)
|
||||
activesupport (>= 3.0.0)
|
||||
sidekiq (2.14.0)
|
||||
celluloid (>= 0.14.1)
|
||||
sidekiq (2.17.0)
|
||||
celluloid (>= 0.15.2)
|
||||
connection_pool (>= 1.0.0)
|
||||
json
|
||||
redis (>= 3.0.4)
|
||||
redis-namespace
|
||||
redis-namespace (>= 1.3.1)
|
||||
simple_oauth (0.1.9)
|
||||
simplecov (0.7.1)
|
||||
multi_json (~> 1.0)
|
||||
simplecov-html (~> 0.7.1)
|
||||
simplecov-html (0.7.1)
|
||||
sinatra (1.4.3)
|
||||
simplecov (0.8.2)
|
||||
docile (~> 1.1.0)
|
||||
multi_json
|
||||
simplecov-html (~> 0.8.0)
|
||||
simplecov-html (0.8.0)
|
||||
sinatra (1.4.4)
|
||||
rack (~> 1.4)
|
||||
rack-protection (~> 1.4)
|
||||
tilt (~> 1.3, >= 1.3.4)
|
||||
six (0.2.0)
|
||||
slim (2.0.0)
|
||||
temple (~> 0.6.5)
|
||||
tilt (~> 1.3, >= 1.3.3)
|
||||
slop (3.4.5)
|
||||
spinach (0.8.3)
|
||||
slack-notifier (0.3.2)
|
||||
slim (2.0.2)
|
||||
temple (~> 0.6.6)
|
||||
tilt (>= 1.3.3, < 2.1)
|
||||
slop (3.4.7)
|
||||
spinach (0.8.7)
|
||||
colorize (= 0.5.8)
|
||||
gherkin-ruby (~> 0.3.0)
|
||||
gherkin-ruby (>= 0.3.1)
|
||||
spinach-rails (0.2.1)
|
||||
capybara (>= 2.0.0)
|
||||
railties (>= 3)
|
||||
spinach (>= 0.4)
|
||||
spork (1.0.0rc2)
|
||||
sprockets (2.2.2)
|
||||
spring (1.1.1)
|
||||
spring-commands-rspec (1.0.1)
|
||||
spring (>= 0.9.1)
|
||||
spring-commands-spinach (1.0.0)
|
||||
spring (>= 0.9.1)
|
||||
sprockets (2.11.0)
|
||||
hike (~> 1.2)
|
||||
multi_json (~> 1.0)
|
||||
rack (~> 1.0)
|
||||
tilt (~> 1.1, != 1.3.0)
|
||||
sprockets-rails (2.0.1)
|
||||
actionpack (>= 3.0)
|
||||
activesupport (>= 3.0)
|
||||
sprockets (~> 2.8)
|
||||
stamp (0.5.0)
|
||||
state_machine (1.2.0)
|
||||
stringex (1.5.1)
|
||||
temple (0.6.5)
|
||||
stringex (2.5.1)
|
||||
temple (0.6.7)
|
||||
term-ansicolor (1.2.2)
|
||||
tins (~> 0.8)
|
||||
test_after_commit (0.2.1)
|
||||
therubyracer (0.11.4)
|
||||
libv8 (~> 3.11.8.12)
|
||||
test_after_commit (0.2.2)
|
||||
therubyracer (0.12.0)
|
||||
libv8 (~> 3.16.14.0)
|
||||
ref
|
||||
thin (1.5.1)
|
||||
thin (1.6.1)
|
||||
daemons (>= 1.0.9)
|
||||
eventmachine (>= 0.12.6)
|
||||
eventmachine (>= 1.0.0)
|
||||
rack (>= 1.0.0)
|
||||
thor (0.18.1)
|
||||
thor (0.19.1)
|
||||
thread_safe (0.3.3)
|
||||
tilt (1.4.1)
|
||||
timers (1.1.0)
|
||||
tinder (1.9.2)
|
||||
tinder (1.9.3)
|
||||
eventmachine (~> 1.0)
|
||||
faraday (~> 0.8)
|
||||
faraday_middleware (~> 0.9)
|
||||
hashie (~> 1.0)
|
||||
json (~> 1.7.5)
|
||||
hashie (>= 1.0, < 3)
|
||||
json (~> 1.8.0)
|
||||
mime-types (~> 1.19)
|
||||
multi_json (~> 1.5)
|
||||
multi_json (~> 1.7)
|
||||
twitter-stream (~> 0.1)
|
||||
tins (0.11.0)
|
||||
tins (0.13.1)
|
||||
treetop (1.4.15)
|
||||
polyglot
|
||||
polyglot (>= 0.3.1)
|
||||
turbolinks (1.2.0)
|
||||
turbolinks (2.0.0)
|
||||
coffee-rails
|
||||
twitter-stream (0.1.16)
|
||||
eventmachine (>= 0.12.8)
|
||||
http_parser.rb (~> 0.5.1)
|
||||
simple_oauth (~> 0.1.4)
|
||||
tzinfo (0.3.38)
|
||||
uglifier (2.1.1)
|
||||
tzinfo (0.3.39)
|
||||
uglifier (2.3.2)
|
||||
execjs (>= 0.3.0)
|
||||
multi_json (~> 1.0, >= 1.0.2)
|
||||
json (>= 1.8.0)
|
||||
underscore-rails (1.4.4)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.6)
|
||||
unicorn (4.6.3)
|
||||
kgio (~> 2.6)
|
||||
rack
|
||||
raindrops (~> 0.7)
|
||||
virtus (0.5.5)
|
||||
backports (~> 3.3)
|
||||
unicorn-worker-killer (0.4.2)
|
||||
unicorn (~> 4)
|
||||
version_sorter (1.1.0)
|
||||
virtus (1.0.1)
|
||||
axiom-types (~> 0.0.5)
|
||||
coercible (~> 1.0)
|
||||
descendants_tracker (~> 0.0.1)
|
||||
equalizer (~> 0.0.7)
|
||||
warden (1.2.3)
|
||||
rack (>= 1.0)
|
||||
webmock (1.11.0)
|
||||
webmock (1.16.0)
|
||||
addressable (>= 2.2.7)
|
||||
crack (>= 0.3.2)
|
||||
websocket (1.0.7)
|
||||
websocket-driver (0.3.0)
|
||||
websocket-driver (0.3.1)
|
||||
xpath (2.0.0)
|
||||
nokogiri (~> 1.3)
|
||||
yajl-ruby (1.1.0)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
ace-rails-ap
|
||||
acts-as-taggable-on
|
||||
annotate (~> 2.6.0.beta2)
|
||||
asciidoctor
|
||||
awesome_print
|
||||
better_errors
|
||||
binding_of_caller
|
||||
bootstrap-sass
|
||||
bootstrap-sass (~> 3.0)
|
||||
capybara
|
||||
carrierwave
|
||||
chosen-rails (= 1.0.0)
|
||||
coffee-rails
|
||||
colored
|
||||
coveralls
|
||||
d3_rails (~> 3.1.4)
|
||||
database_cleaner
|
||||
devise (~> 2.2)
|
||||
devise-async
|
||||
default_value_for (~> 3.0.0)
|
||||
devise (= 3.0.4)
|
||||
devise-async (= 0.8.0)
|
||||
diffy (~> 3.0.3)
|
||||
email_spec
|
||||
email_validator (~> 1.4.0)
|
||||
enumerize
|
||||
factory_girl_rails
|
||||
ffaker
|
||||
fog (~> 1.3.1)
|
||||
font-awesome-rails
|
||||
fog (~> 1.14)
|
||||
font-awesome-rails (~> 3.2)
|
||||
foreman
|
||||
gemoji (~> 1.2.1)
|
||||
github-linguist
|
||||
github-markup (~> 0.7.4)
|
||||
gemnasium-gitlab-service (~> 0.2)
|
||||
github-markup
|
||||
gitlab-flowdock-git-hook (~> 0.4.2)
|
||||
gitlab-gollum-lib (~> 1.0.1)
|
||||
gitlab-grack (~> 1.0.1)
|
||||
gitlab-pygments.rb (~> 0.3.2)
|
||||
gitlab_git (~> 3.0.0.rc2)
|
||||
gitlab-grack (~> 2.0.0.pre)
|
||||
gitlab-linguist (~> 3.0.0)
|
||||
gitlab_emoji (~> 0.0.1.1)
|
||||
gitlab_git (~> 5.8)
|
||||
gitlab_meta (= 6.0)
|
||||
gitlab_omniauth-ldap (= 1.0.3)
|
||||
gon
|
||||
grape (~> 0.4.1)
|
||||
grape-entity (~> 0.3.0)
|
||||
gitlab_omniauth-ldap (= 1.0.4)
|
||||
gollum-lib (~> 3.0.0)
|
||||
gon (~> 5.0.0)
|
||||
grape (~> 0.6.1)
|
||||
grape-entity (~> 0.4.2)
|
||||
growl
|
||||
guard-rspec
|
||||
guard-spinach
|
||||
haml-rails
|
||||
hipchat (~> 0.9.0)
|
||||
hipchat (~> 0.14.0)
|
||||
httparty
|
||||
jasmine
|
||||
jquery-atwho-rails (= 0.3.0)
|
||||
jquery-rails (= 2.1.3)
|
||||
jasmine (= 2.0.0.rc5)
|
||||
jquery-atwho-rails (~> 0.3.3)
|
||||
jquery-rails
|
||||
jquery-turbolinks
|
||||
jquery-ui-rails (= 2.0.2)
|
||||
kaminari (~> 0.14.1)
|
||||
jquery-ui-rails
|
||||
kaminari (~> 0.15.1)
|
||||
launchy
|
||||
letter_opener
|
||||
minitest (~> 4.7.0)
|
||||
modernizr (= 2.6.2)
|
||||
mysql2
|
||||
nprogress-rails
|
||||
omniauth (~> 1.1.3)
|
||||
omniauth-github
|
||||
omniauth-google-oauth2
|
||||
omniauth-twitter
|
||||
pg
|
||||
poltergeist (~> 1.4.1)
|
||||
protected_attributes
|
||||
pry
|
||||
quiet_assets (~> 1.0.1)
|
||||
rack-attack
|
||||
rack-cors
|
||||
rack-mini-profiler
|
||||
rails (= 3.2.15)
|
||||
rails-dev-tweaks
|
||||
rails (~> 4.0.0)
|
||||
rails-observers
|
||||
rails_best_practices
|
||||
raphael-rails (~> 2.1.2)
|
||||
rb-fsevent
|
||||
@@ -623,20 +636,23 @@ DEPENDENCIES
|
||||
redcarpet (~> 2.2.2)
|
||||
redis-rails
|
||||
rspec-rails
|
||||
sanitize
|
||||
sass-rails
|
||||
sanitize (~> 2.0)
|
||||
sass-rails (~> 4.0.2)
|
||||
sdoc
|
||||
seed-fu
|
||||
select2-rails
|
||||
settingslogic
|
||||
shoulda-matchers (~> 2.1.0)
|
||||
sidekiq
|
||||
sidekiq (= 2.17.0)
|
||||
simplecov
|
||||
sinatra
|
||||
six
|
||||
slack-notifier (~> 0.3.2)
|
||||
slim
|
||||
spinach-rails
|
||||
spork (~> 1.0rc)
|
||||
spring (= 1.1.1)
|
||||
spring-commands-rspec (= 1.0.1)
|
||||
spring-commands-spinach (= 1.0.0)
|
||||
stamp
|
||||
state_machine
|
||||
test_after_commit
|
||||
@@ -646,5 +662,8 @@ DEPENDENCIES
|
||||
turbolinks
|
||||
uglifier
|
||||
underscore-rails (~> 1.4.4)
|
||||
unf
|
||||
unicorn (~> 4.6.3)
|
||||
unicorn-worker-killer
|
||||
version_sorter
|
||||
webmock
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# A sample Guardfile
|
||||
# More info at https://github.com/guard/guard#readme
|
||||
|
||||
guard 'rspec', :version => 2, :all_on_start => false, :all_after_pass => false do
|
||||
guard 'rspec', cmd: "spring rspec", version: 2, all_on_start: false, all_after_pass: false do
|
||||
watch(%r{^spec/.+_spec\.rb$})
|
||||
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
||||
watch(%r{^lib/api/(.+)\.rb$}) { |m| "spec/requests/api/#{m[1]}_spec.rb" }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2011 Dmitriy Zaporozhets
|
||||
Copyright (c) 2011-2014 Dmitriy Zaporozhets
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -21,3 +21,5 @@ release where the minor version is increased numerically by increments of one
|
||||
(eg. `5.0 -> 5.1`).
|
||||
|
||||
We encourage everyone to run the latest stable release to ensure that you can easily upgrade to the most secure and feature rich GitLab experience. In order to make sure you can easily run the most recent stable release, we are working hard to keep the update process simple and reliable.
|
||||
|
||||
More information about the release procedures can be found in the doc/release directory.
|
||||
|
||||
@@ -7,26 +7,19 @@ Below we describe the contributing process to GitLab for two reasons. So that co
|
||||
## Common actions
|
||||
|
||||
### Issue team
|
||||
- Looks for issues without workflow labels and triages issue
|
||||
- Monitors pull requests
|
||||
- Closes invalid issues and pull requests with a comment (duplicates, [feature requests](#feature-requests), [fixed in newer version](#issue-fixed-in-newer-version), [issue report for old version](#issue-report-for-old-version), not a problem in GitLab, etc.)
|
||||
- Assigns appropriate [labels](#how-we-handle-issues)
|
||||
- Asks for feedback from issue reporter/pull request initiator ([invalid issue reports](#improperly-formatted-issue), [format code](#code-format), etc.)
|
||||
- Asks for feedback from the relevant developer(s) based on the [list of members and their specialities](http://gitlab.org/team/)
|
||||
- Monitors all issues/pull requests for feedback (but especially ones commented on since automatically watching them):
|
||||
- Looks for issues without [workflow labels](#how-we-handle-issues) and triages issue
|
||||
- Closes invalid issues with a comment (duplicates, [feature requests](#feature-requests), [fixed in newer version](#issue-fixed-in-newer-version), [issue report for old version](#issue-report-for-old-version), not a problem in GitLab, etc.)
|
||||
- Asks for feedback from issue reporter ([invalid issue reports](#improperly-formatted-issue), [format code](#code-format), etc.)
|
||||
- Monitors all issues for feedback (but especially ones commented on since automatically watching them)
|
||||
- Closes issues with no feedback from the reporter for two weeks
|
||||
- Closes stale pull requests
|
||||
|
||||
### Development team
|
||||
### Merge request officers
|
||||
|
||||
- Responds to issues and pull requests the issue team mentions them in
|
||||
- Monitors for new issues in _Awaiting developer action/feedback_ with no developer activity (once a week)
|
||||
- Monitors for new pull requests (at least once a week)
|
||||
- Manages their work queue by looking at issues and pull requests assigned to them
|
||||
- Close fixed issues (via commit messages or manually)
|
||||
- Codes [new features](http://feedback.gitlab.com/forums/176466-general/filters/top)!
|
||||
- Response guidelines
|
||||
- Be kind to people trying to contribute. Be aware that people can be a non-native or a native English speaker, they might not understand thing or they might be very sensitive to how your word things. Use emoji to express your feelings (heart, star, smile, etc.). Some good tips about giving feedback to pull requests is in the [Thoughtbot code review guide](https://github.com/thoughtbot/guides/tree/master/code-review).
|
||||
- Responds to merge requests the issue team mentions them in and monitors for new merge requests
|
||||
- Provides feedback to the merge request submitter to improve the merge request (style, tests, etc.)
|
||||
- Mark merge requests 'ready-for-merge' when they meet the contribution guidelines
|
||||
- Mention developer(s) based on the [list of members and their specialities](https://www.gitlab.com/core-team/)
|
||||
- Closes merge requests with no feedback from the reporter for two weeks
|
||||
|
||||
## Priorities of the issue team
|
||||
|
||||
@@ -37,7 +30,7 @@ Below we describe the contributing process to GitLab for two reasons. So that co
|
||||
|
||||
## Mentioning people
|
||||
|
||||
The most important thing is making sure valid issues receive feedback from the development team. Therefore the priority is mentioning developers that can help on those issue. Please select someone with relevant experience from [GitLab core team](http://gitlab.org/team/). If there is nobody mentioned with that expertise look in the commit history for the affected files to find someone. Avoid mentioning the lead developer, this is the person that is least likely to give a timely response. If the involvement of the lead developer is needed the other core team members will mention this person.
|
||||
The most important thing is making sure valid issues receive feedback from the development team. Therefore the priority is mentioning developers that can help on those issue. Please select someone with relevant experience from [GitLab core team](https://www.gitlab.com/core-team/). If there is nobody mentioned with that expertise look in the commit history for the affected files to find someone. Avoid mentioning the lead developer, this is the person that is least likely to give a timely response. If the involvement of the lead developer is needed the other core team members will mention this person.
|
||||
|
||||
## Workflow labels
|
||||
|
||||
@@ -45,8 +38,8 @@ Workflow labels are purposely not very detailed since that would be hard to keep
|
||||
|
||||
- _Awaiting feedback_: Feedback pending from the reporter
|
||||
- _Awaiting confirmation of fix_: The issue should already be solved in **master** (generally you can avoid this workflow item and just close the issue right away)
|
||||
- _Attached PR_: There is a PR attached and the discussion should happen there
|
||||
- We need to let issues stay in sync with the PR's. We can do this with a "Closing #XXXX" or "Fixes #XXXX" comment in the PR. We can't close the issue when there is a pull request because sometimes a PR is not good and we just close the PR, then the issue must stay.
|
||||
- _Attached MR_: There is a MR attached and the discussion should happen there
|
||||
- We need to let issues stay in sync with the MR's. We can do this with a "Closing #XXXX" or "Fixes #XXXX" comment in the MR. We can't close the issue when there is a merge request because sometimes a MR is not good and we just close the MR, then the issue must stay.
|
||||
- _Awaiting developer action/feedback_: Issue needs to be fixed or clarified by a developer
|
||||
|
||||
## Functional labels
|
||||
@@ -59,29 +52,33 @@ If an issue is complex and needs the attention of a specific person, assignment
|
||||
|
||||
## Label colors
|
||||
- Light orange `#fef2c0`: workflow labels for issue team members (awaiting feedback, awaiting confirmation of fix)
|
||||
- Bright orange `#eb6420`: workflow labels for core team members (attached PR, awaiting developer action/feedback)
|
||||
- Bright orange `#eb6420`: workflow labels for core team members (attached MR, awaiting developer action/feedback)
|
||||
- Light blue `#82C5FF`: functional labels
|
||||
- Green labels `#009800`: issues that can generally be ignored. For example, issues given the following labels normally can be closed immediately:
|
||||
- Feature request (see copy & paste response: [Feature requests](#feature-requests))
|
||||
- Support (see copy & paste response: [Support requests and configuration questions](#support-requests-and-configuration-questions)
|
||||
|
||||
## Be kind
|
||||
|
||||
Be kind to people trying to contribute. Be aware that people can be a non-native or a native English speaker, they might not understand thing or they might be very sensitive to how your word things. Use emoji to express your feelings (heart, star, smile, etc.). Some good tips about giving feedback to merge requests is in the [Thoughtbot code review guide](https://github.com/thoughtbot/guides/tree/master/code-review).
|
||||
|
||||
## Copy & paste responses
|
||||
|
||||
### Improperly formatted issue
|
||||
|
||||
Thanks for the issue report. Please reformat your issue to conform to the issue tracker guidelines found in our \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
Thanks for the issue report. Please reformat your issue to conform to the issue tracker guidelines found in our \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
|
||||
### Feature requests
|
||||
|
||||
Thanks for your interest in GitLab. We don't use the GitHub issue tracker for feature requests. Please use http://feedback.gitlab.com/ for this purpose or create a pull request implementing this feature. Have a look at the \[contribution guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md) for more information.
|
||||
Thank you for your interest in improving GitLab. We don't use the issue tracker for feature requests. Things that are wrong but are not a regression compared to older versions of GitLab are considered feature requests and not issues. Please use the [feature request forum](http://feedback.gitlab.com/) for this purpose or create a merge request implementing this feature. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
|
||||
|
||||
### Issue report for old version
|
||||
|
||||
Thanks for the issue report but we only support issues for the latest stable version of GitLab. I'm closing this issue but if you still experience this problem in the latest stable version, please open a new issue (but also reference the old issue(s)). Make sure to also include the necessary debugging information conforming to the issue tracker guidelines found in our \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
Thanks for the issue report but we only support issues for the latest stable version of GitLab. I'm closing this issue but if you still experience this problem in the latest stable version, please open a new issue (but also reference the old issue(s)). Make sure to also include the necessary debugging information conforming to the issue tracker guidelines found in our \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
|
||||
### Support requests and configuration questions
|
||||
|
||||
Thanks for your interest in GitLab. We don't use the GitHub issue tracker for support requests and configuration questions. Please use the \[support forum\]\(https://groups.google.com/forum/#!forum/gitlabhq), \[Stack Overflow\]\(http://stackoverflow.com/questions/tagged/gitlab), the unofficial #gitlab IRC channel on Freenode or the http://www.gitlab.com paid services for this purpose. Have a look at the \[contribution guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md) for more information.
|
||||
Thanks for your interest in GitLab. We don't use the issue tracker for support requests and configuration questions. Please use the \[support forum\]\(https://groups.google.com/forum/#!forum/gitlabhq), \[Stack Overflow\]\(http://stackoverflow.com/questions/tagged/gitlab), the #gitlab IRC channel on Freenode or the http://www.gitlab.com paid services for this purpose. Have a look at the \[contribution guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md) for more information.
|
||||
|
||||
### Code format
|
||||
|
||||
@@ -89,17 +86,24 @@ Please use ``` to format console output, logs, and code as it's very hard to rea
|
||||
|
||||
### Issue fixed in newer version
|
||||
|
||||
Thanks for the issue report. This issue has already been fixed in newer versions of GitLab. Due to the size of this project and our limited resources we are only able to support the latest stable release as outlined in our \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#issue-tracker). In order to get this bug fix and enjoy many new features please \[upgrade\]\(http://blog.gitlab.org/). If you still experience issues at that time please open a new issue following our issue tracker guidelines found in the \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
Thanks for the issue report. This issue has already been fixed in newer versions of GitLab. Due to the size of this project and our limited resources we are only able to support the latest stable release as outlined in our \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#issue-tracker). In order to get this bug fix and enjoy many new features please \[upgrade\]\(https://github.com/gitlabhq/gitlabhq/tree/master/doc/update). If you still experience issues at that time please open a new issue following our issue tracker guidelines found in the \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
|
||||
### Improperly formatted pull request
|
||||
### Improperly formatted merge request
|
||||
|
||||
Thanks for your interest in improving the GitLab codebase! Please update your pull request according to the \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#pull-request-guidelines).
|
||||
Thanks for your interest in improving the GitLab codebase! Please update your merge request according to the \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#pull-request-guidelines).
|
||||
|
||||
### Inactivity close of an issue
|
||||
|
||||
It's been at least 2 weeks (and a new release) since we heard from you. I'm closing this issue but if you still experience this problem, please open a new issue (but also reference the old issue(s)). Make sure to also include the necessary debugging information conforming to the issue tracker guidelines found in our \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
It's been at least 2 weeks (and a new release) since we heard from you. I'm closing this issue but if you still experience this problem, please open a new issue (but also reference the old issue(s)). Make sure to also include the necessary debugging information conforming to the issue tracker guidelines found in our \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#issue-tracker-guidelines).
|
||||
|
||||
### Inactivity close of a pull request
|
||||
### Inactivity close of a merge request
|
||||
|
||||
This pull request has been closed because a request for more information has not been reacted to for more than 2 weeks. If you respond and conform to the pull request guidelines in our \[contributing guidelines\]\(https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md#pull-requests) we will reopen this pull request.
|
||||
This merge request has been closed because a request for more information has not been reacted to for more than 2 weeks. If you respond and conform to the merge request guidelines in our \[contributing guidelines\]\(https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#pull-requests) we will reopen this merge request.
|
||||
|
||||
### Accepting merge requests
|
||||
|
||||
Is there a request on [the feature request forum](http://feedback.gitlab.com/forums/176466-general) that is similar to this?
|
||||
If so, can you make a comment with a link to it?
|
||||
Please be aware that new functionality that is not marked [accepting merge/pull requests](http://feedback.gitlab.com/forums/176466-general/status/796455) on the forum might not make it into GitLab.
|
||||
You might be asked to make changes and even after implementing them your feature might still be declined.
|
||||
If you want to reduce the chance of this happening please have a discussion in the forum first.
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
web: bundle exec unicorn_rails -p $PORT -E development
|
||||
web: bundle exec unicorn_rails -p ${PORT:="3000"} -E ${RAILS_ENV:="development"} -c ${UNICORN_CONFIG:="config/unicorn.rb"}
|
||||
worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitlab_shell
|
||||
|
||||
@@ -1,42 +1,45 @@
|
||||
## GitLab: self hosted Git management software
|
||||
|
||||

|
||||

|
||||
|
||||

|
||||
|
||||
### GitLab allows you to
|
||||
* keep your code secure on your own server
|
||||
* manage repositories, users and access permissions
|
||||
* communicate through issues, line-comments and wiki pages
|
||||
* perform code review with merge requests
|
||||
### Gitlab is open source software to collaborate on code
|
||||
|
||||
### GitLab is
|
||||
* Manage git repositories with fine grained access controls that keep your code secure
|
||||
* Perform code reviews and enhance collaboration with merge requests
|
||||
* Each project can also have an issue tracker and a wiki
|
||||
* Used by more than 100,000 organizations, GitLab is the most popular solution to manage git repositories on-premises
|
||||
* Completely free and open source (MIT Expat license)
|
||||
* Powered by Ruby on Rails
|
||||
|
||||
* powered by Ruby on Rails
|
||||
* completely free and open source (MIT license)
|
||||
* used by more than 25.000 organizations to keep their code secure
|
||||
### Canonical source
|
||||
|
||||
* The source of GitLab Communinity Edition is [hosted on GitLab Cloud](https://gitlab.com/gitlab-org/gitlab-ce/) and there are mirrors to make [contributing](CONTRIBUTING.md) as easy as possible.
|
||||
|
||||
### Code status
|
||||
|
||||
* [](http://ci.gitlab.org/projects/1?ref=master) on ci.gitlab.org (master branch)
|
||||
* [](https://ci.gitlab.org/projects/1?ref=master) on ci.gitlab.org (master branch)
|
||||
|
||||
* [](https://codeclimate.com/github/gitlabhq/gitlabhq)
|
||||
|
||||
* [](https://gemnasium.com/gitlabhq/gitlabhq) this button can be yellow (small updates are available) but must not be red (a security fix or an important update is available), gems are updated in major releases of GitLab.
|
||||
|
||||
* [](https://coveralls.io/r/gitlabhq/gitlabhq)
|
||||
|
||||
* [](https://www.pullreview.com/gitlab.gitlab.com/gitlab-org/gitlab-ce/reviews/master)
|
||||
|
||||
### Resources
|
||||
|
||||
* GitLab.org community site: [Homepage](http://gitlab.org) | [Screenshots](http://gitlab.org/screenshots/) | [Blog](http://blog.gitlab.org/) | [Demo](http://demo.gitlabhq.com/users/sign_in)
|
||||
* [GitLab.com](https://www.gitlab.com/) includes information about [subscriptions](https://www.gitlab.com/subscription/), [consultancy](https://www.gitlab.com/consultancy/), the [community](https://www.gitlab.com/community/) and the [hosted GitLab Cloud](https://www.gitlab.com/cloud/).
|
||||
|
||||
* GitLab.com commercial services: [Homepage](http://www.gitlab.com/) | [Subscription](http://www.gitlab.com/subscription/) | [Consultancy](http://www.gitlab.com/consultancy/) | [GitLab Cloud](http://www.gitlab.com/cloud/) | [Blog](http://blog.gitlab.com/)
|
||||
* [GitLab Enterprise Edition](https://www.gitlab.com/gitlab-ee/) offers additional features aimed at larger organizations.
|
||||
|
||||
* GitLab CI: [Readme](https://github.com/gitlabhq/gitlab-ci/blob/master/README.md) of the GitLab open-source continuous integration server
|
||||
* [GitLab CI](https://www.gitlab.com/gitlab-ci/) is a continuous integration (CI) server that is easy to integrate with GitLab.
|
||||
|
||||
* Unofficial third-party [iPhone app](http://gitlabcontrol.com/), [Android app](https://play.google.com/store/apps/details?id=com.bd.gitlab&hl=en) and [command line client](https://github.com/drewblessing/gitlab-cli) and [Ruby API wrapper](https://github.com/NARKOZ/gitlab) for GitLab.
|
||||
|
||||
### Requirements
|
||||
|
||||
* Ubuntu/Debian**
|
||||
* Ubuntu/Debian/CentOS/RHEL**
|
||||
* ruby 1.9.3+
|
||||
* git 1.7.10+
|
||||
* redis 2.0+
|
||||
@@ -46,39 +49,33 @@
|
||||
|
||||
### Installation
|
||||
|
||||
#### Official production installation
|
||||
#### Official installation methods
|
||||
|
||||
* [Installation guide for a production server](doc/install/installation.md)
|
||||
* [GitLab packages](https://www.gitlab.com/downloads/) **recommended** These packages contain GitLab and all its depencies (Ruby, PostgreSQL, Redis, Nginx, Unicorn, etc.). They are made with [omnibus-gitlab](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md) that also contains the installation instructions.
|
||||
|
||||
* [GitLab Chef Cookbook](https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/README.md) This cookbook can be used both for development installations and production installations. If you want to [contribute](CONTRIBUTE.md) to GitLab we suggest you follow the [development installation on a virtual machine with Vagrant](https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/doc/development.md) instructions to install all testing dependencies.
|
||||
|
||||
#### Official development installation
|
||||
* [Manual installation guide](doc/install/installation.md) This guide to set up a production server on Ubuntu offers detailed and complete step-by-step instructions.
|
||||
|
||||
If you want to contribute, please first read our [Contributing Guidelines](https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md) and then we suggest you to use the Vagrant virtual machine project to get an environment working with all dependencies.
|
||||
#### Third party one-click installers
|
||||
|
||||
* [Vagrant virtual machine for development](https://github.com/gitlabhq/gitlab-vagrant-vm)
|
||||
* [Digital Ocean 1-Click Application Install](https://www.digitalocean.com/blog_posts/host-your-git-repositories-in-55-seconds-with-gitlab) Have a new server up in 55 seconds. Digital Ocean uses SSD disks which is great for an IO intensive app such as GitLab. We recommend selecting a droplet with [1GB of memory](https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/requirements.md).
|
||||
|
||||
* [BitNami one-click installers](http://bitnami.com/stack/gitlab) This package contains both GitLab and GitLab CI. It is available as installer, virtual machine or for cloud hosting providers (Amazon Web Services/Azure/etc.).
|
||||
|
||||
#### Unofficial production installations
|
||||
#### Unofficial installation methods
|
||||
|
||||
* [GitLab recipes](https://github.com/gitlabhq/gitlab-recipes) repository with unofficial guides for using GitLab with different software (operating systems, webservers, etc.) than the official version.
|
||||
* [GitLab recipes](https://gitlab.com/gitlab-org/gitlab-recipes/) repository with unofficial guides for using GitLab with different software (operating systems, webservers, etc.) than the official version.
|
||||
|
||||
* [Installation guides](https://github.com/gitlabhq/gitlab-public-wiki/wiki/Unofficial-Installation-Guides) public wiki with unofficial guides to install GitLab on different operating systems.
|
||||
|
||||
* [BitNami one-click installers](http://bitnami.com/stack/gitlab)
|
||||
|
||||
* [TurnKey Linux virtual appliance](http://www.turnkeylinux.org/gitlab)
|
||||
|
||||
|
||||
### New versions and upgrading
|
||||
|
||||
Since 2011 GitLab is released on the 22nd of every month. Every new release includes an upgrade guide.
|
||||
Since 2011 GitLab is released on the 22nd of every month. Every new release includes an [upgrade guide](doc/update) and new features are detailed in the [Changelog](CHANGELOG).
|
||||
|
||||
* [Upgrade guides](doc/update)
|
||||
|
||||
* [Changelog](CHANGELOG)
|
||||
|
||||
* Features that will be in the next releases are listed on [the feedback and suggestions forum](http://feedback.gitlab.com/forums/176466-general) with the status [started](http://feedback.gitlab.com/forums/176466-general/status/796456) and [completed](http://feedback.gitlab.com/forums/176466-general/status/796457).
|
||||
It is recommended to follow a monthly upgrade schedule. Security releases come out when needed. For more information about the release process see the documentation for [monthly](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/release/monthly.md) and [security](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/release/security.md) releases.
|
||||
|
||||
* Features that will be in the next releases are listed on the [feature request forum](http://feedback.gitlab.com/forums/176466-general) with the status [started](http://feedback.gitlab.com/forums/176466-general/status/796456) and [completed](http://feedback.gitlab.com/forums/176466-general/status/796457).
|
||||
|
||||
### Run in production mode
|
||||
|
||||
@@ -90,8 +87,16 @@ or by directly calling the script
|
||||
|
||||
sudo /etc/init.d/gitlab start
|
||||
|
||||
Please login with root / 5iveL!fe
|
||||
|
||||
### Run in development mode
|
||||
|
||||
Consider setting up the development environment with [the cookbook](https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/README.md#installation).
|
||||
|
||||
Copy the example development unicorn configuration file
|
||||
|
||||
cp config/unicorn.rb.example.development config/unicorn.rb
|
||||
|
||||
Start it with [Foreman](https://github.com/ddollar/foreman)
|
||||
|
||||
bundle exec foreman start -p 3000
|
||||
@@ -101,16 +106,13 @@ or start each component separately
|
||||
bundle exec rails s
|
||||
script/background_jobs start
|
||||
|
||||
And surf to [localhost:3000](http://localhost:3000/) and login with root / 5iveL!fe
|
||||
|
||||
### Run the tests
|
||||
|
||||
* Seed the database
|
||||
|
||||
bundle exec rake db:setup RAILS_ENV=test
|
||||
bundle exec rake db:seed_fu RAILS_ENV=test
|
||||
|
||||
* Run all tests
|
||||
|
||||
bundle exec rake gitlab:test
|
||||
bundle exec rake test
|
||||
|
||||
* [RSpec](http://rspec.info/) unit and functional tests
|
||||
|
||||
@@ -125,43 +127,10 @@ or start each component separately
|
||||
Single Spinach test: bundle exec spinach features/project/issues/milestones.feature
|
||||
|
||||
|
||||
### GitLab interfaces
|
||||
### Documentation
|
||||
|
||||
* [GitLab API doc](doc/api/README.md) or see the [GitLab API website](http://api.gitlab.org/)
|
||||
|
||||
* [Rake tasks](doc/raketasks) including a [backup and restore procedure](doc/raketasks/backup_restore.md)
|
||||
|
||||
* [Directory structure](doc/install/structure.md)
|
||||
|
||||
* [Database installation](doc/install/databases.md)
|
||||
|
||||
* [Markdown specification](doc/markdown/markdown.md)
|
||||
|
||||
* [Security guide](doc/security/rack_attack.md) to throttle abusive requests
|
||||
All documentation can be found on [doc.gitlab.com/ce/](http://doc.gitlab.com/ce/).
|
||||
|
||||
### Getting help
|
||||
|
||||
* [Maintenance policy](MAINTENANCE.md) specifies what versions are supported.
|
||||
|
||||
* [Troubleshooting guide](https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide) contains solutions to common problems.
|
||||
|
||||
* [Mailing list](https://groups.google.com/forum/#!forum/gitlabhq) and [Stack Overflow](http://stackoverflow.com/questions/tagged/gitlab) are the best places to ask questions. For example you can use it if you have questions about: permission denied errors, invisible repos, can't clone/pull/push or with web hooks that don't fire. Please search for similar issues before posting your own, there's a good chance somebody else had the same issue you have now and has resolved it. There are a lot of helpful GitLab users there who may be able to help you quickly. If your particular issue turns out to be a bug, it will find its way from there to a fix.
|
||||
|
||||
* [Unofficial #gitlab IRC on Freenode](http://www.freenode.net/) is another way to get in touch with other GitLab users who may be able to help you.
|
||||
|
||||
* [Feedback and suggestions forum](http://feedback.gitlab.com) is the place to propose and discuss new features for GitLab.
|
||||
|
||||
* [Contributing guide](https://github.com/gitlabhq/gitlabhq/blob/master/CONTRIBUTING.md) describes how to submit pull requests and issues. Pull requests and issues not in line with the guidelines in this document will be closed.
|
||||
|
||||
* [Support subscription](http://www.gitlab.com/subscription/) connects you to the knowledge of GitLab experts that will resolve your issues and answer your questions.
|
||||
|
||||
* [Consultancy](http://www.gitlab.com/consultancy/) allows you hire GitLab experts for installations, upgrades and customizations.
|
||||
|
||||
|
||||
### Getting in touch
|
||||
|
||||
* [Core team](http://gitlab.org/team/)
|
||||
|
||||
* [Contributors](http://contributors.gitlab.org/)
|
||||
|
||||
* [Community](http://gitlab.org/community/)
|
||||
Please see [Getting help for GitLab](https://www.gitlab.com/getting-help/) on our website for the many options to get help.
|
||||
|
||||
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 210 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 463 B |
|
After Width: | Height: | Size: 1019 B |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 704 B |
|
After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 548 B |
|
After Width: | Height: | Size: 494 B |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 505 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 58 B After Width: | Height: | Size: 50 B |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 9.8 KiB |
@@ -8,6 +8,23 @@ class Admin
|
||||
else
|
||||
elems.removeAttr 'disabled'
|
||||
|
||||
$('body').on 'click', '.js-toggle-colors-link', (e) ->
|
||||
e.preventDefault()
|
||||
$('.js-toggle-colors-link').hide()
|
||||
$('.js-toggle-colors-container').show()
|
||||
|
||||
$('input#broadcast_message_color').on 'input', ->
|
||||
previewColor = $('input#broadcast_message_color').val()
|
||||
$('div.broadcast-message-preview').css('background-color', previewColor)
|
||||
|
||||
$('input#broadcast_message_font').on 'input', ->
|
||||
previewColor = $('input#broadcast_message_font').val()
|
||||
$('div.broadcast-message-preview').css('color', previewColor)
|
||||
|
||||
$('textarea#broadcast_message_message').on 'input', ->
|
||||
previewMessage = $('textarea#broadcast_message_message').val()
|
||||
$('div.broadcast-message-preview span').text(previewMessage)
|
||||
|
||||
$('.log-tabs a').click (e) ->
|
||||
e.preventDefault()
|
||||
$(this).tab('show')
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
users_path: "/api/:version/users.json"
|
||||
user_path: "/api/:version/users/:id.json"
|
||||
notes_path: "/api/:version/projects/:id/notes.json"
|
||||
namespaces_path: "/api/:version/namespaces.json"
|
||||
project_users_path: "/api/:version/projects/:id/users.json"
|
||||
|
||||
# Get 20 (depends on api) recent notes
|
||||
# and sort the ascending from oldest to newest
|
||||
@@ -49,6 +51,37 @@
|
||||
).done (users) ->
|
||||
callback(users)
|
||||
|
||||
# Return project users list. Filtered by query
|
||||
# Only active users retrieved
|
||||
projectUsers: (project_id, query, callback) ->
|
||||
url = Api.buildUrl(Api.project_users_path)
|
||||
url = url.replace(':id', project_id)
|
||||
|
||||
$.ajax(
|
||||
url: url
|
||||
data:
|
||||
private_token: gon.api_token
|
||||
search: query
|
||||
per_page: 20
|
||||
active: true
|
||||
dataType: "json"
|
||||
).done (users) ->
|
||||
callback(users)
|
||||
|
||||
# Return namespaces list. Filtered by query
|
||||
namespaces: (query, callback) ->
|
||||
url = Api.buildUrl(Api.namespaces_path)
|
||||
|
||||
$.ajax(
|
||||
url: url
|
||||
data:
|
||||
private_token: gon.api_token
|
||||
search: query
|
||||
per_page: 20
|
||||
dataType: "json"
|
||||
).done (namespaces) ->
|
||||
callback(namespaces)
|
||||
|
||||
buildUrl: (url) ->
|
||||
url = gon.relative_url_root + url if gon.relative_url_root?
|
||||
return url.replace(':version', gon.api_version)
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
// This is a manifest file that'll be compiled into including all the files listed below.
|
||||
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
||||
// be included in the compiled file accessible from http://example.com/assets/application.js
|
||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
// the compiled file.
|
||||
//
|
||||
//= require jquery
|
||||
//= require jquery.ui.all
|
||||
//= require jquery_ujs
|
||||
//= require jquery.cookie
|
||||
//= require jquery.endless-scroll
|
||||
//= require jquery.highlight
|
||||
//= require jquery.history
|
||||
//= require jquery.waitforimages
|
||||
//= require jquery.atwho
|
||||
//= require jquery.scrollto
|
||||
//= require jquery.blockUI
|
||||
//= require turbolinks
|
||||
//= require jquery.turbolinks
|
||||
//= require bootstrap
|
||||
//= require modernizr
|
||||
//= require chosen-jquery
|
||||
//= require select2
|
||||
//= require raphael
|
||||
//= require g.raphael-min
|
||||
//= require g.bar-min
|
||||
//= require branch-graph
|
||||
//= require ace-src-noconflict/ace
|
||||
//= require_tree .
|
||||
//= require d3
|
||||
//= require underscore
|
||||
@@ -1,5 +1,35 @@
|
||||
window.updatePage = (data) ->
|
||||
$.ajax({type: "GET", url: location.href, data: data, dataType: "script"})
|
||||
# This is a manifest file that'll be compiled into including all the files listed below.
|
||||
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
||||
# be included in the compiled file accessible from http://example.com/assets/application.js
|
||||
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
||||
# the compiled file.
|
||||
#
|
||||
#= require jquery
|
||||
#= require jquery.ui.all
|
||||
#= require jquery_ujs
|
||||
#= require jquery.cookie
|
||||
#= require jquery.endless-scroll
|
||||
#= require jquery.highlight
|
||||
#= require jquery.history
|
||||
#= require jquery.waitforimages
|
||||
#= require jquery.atwho
|
||||
#= require jquery.scrollto
|
||||
#= require jquery.blockUI
|
||||
#= require turbolinks
|
||||
#= require jquery.turbolinks
|
||||
#= require bootstrap
|
||||
#= require select2
|
||||
#= require raphael
|
||||
#= require g.raphael-min
|
||||
#= require g.bar-min
|
||||
#= require branch-graph
|
||||
#= require highlightjs.min
|
||||
#= require ace/ace
|
||||
#= require d3
|
||||
#= require underscore
|
||||
#= require nprogress
|
||||
#= require nprogress-turbolinks
|
||||
#= require_tree .
|
||||
|
||||
window.slugify = (text) ->
|
||||
text.replace(/[^-a-zA-Z0-9]+/g, '_').toLowerCase()
|
||||
@@ -44,19 +74,11 @@ window.linkify = (str) ->
|
||||
window.simpleFormat = (str) ->
|
||||
linkify(sanitize(str).replace(/\n/g, '<br />'))
|
||||
|
||||
window.startSpinner = ->
|
||||
$('.turbolink-spinner').fadeIn()
|
||||
|
||||
window.stopSpinner = ->
|
||||
$('.turbolink-spinner').fadeOut()
|
||||
|
||||
window.unbindEvents = ->
|
||||
$(document).unbind('scroll')
|
||||
$(document).off('scroll')
|
||||
|
||||
document.addEventListener("page:fetch", startSpinner)
|
||||
document.addEventListener("page:fetch", unbindEvents)
|
||||
document.addEventListener("page:receive", stopSpinner)
|
||||
|
||||
$ ->
|
||||
# Click a .one_click_select field, select the contents
|
||||
@@ -65,13 +87,8 @@ $ ->
|
||||
$('.remove-row').bind 'ajax:success', ->
|
||||
$(this).closest('li').fadeOut()
|
||||
|
||||
# Click a .appear-link, appear-data fadeout
|
||||
$(".appear-link").on 'click', (e) ->
|
||||
$('.appear-data').fadeIn()
|
||||
e.preventDefault()
|
||||
|
||||
# Initialize chosen selects
|
||||
$('select.chosen').chosen()
|
||||
# Initialize select2 selects
|
||||
$('select.select2').select2(width: 'resolve', dropdownAutoWidth: true)
|
||||
|
||||
# Initialize tooltips
|
||||
$('.has_tooltip').tooltip()
|
||||
@@ -84,6 +101,7 @@ $ ->
|
||||
$(@).parents('form').submit()
|
||||
|
||||
$("abbr.timeago").timeago()
|
||||
$('.js-timeago').timeago()
|
||||
|
||||
# Flash
|
||||
if (flash = $(".flash-container")).length > 0
|
||||
@@ -119,21 +137,11 @@ $ ->
|
||||
|
||||
|
||||
# Commit show suppressed diff
|
||||
$(".content").on "click", ".supp_diff_link", ->
|
||||
$(".diff-content").on "click", ".supp_diff_link", ->
|
||||
$(@).next('table').show()
|
||||
$(@).remove()
|
||||
|
||||
$(".content").on "click", ".js-details-expand", ->
|
||||
$(@).next('.js-details-contain').removeClass("hide")
|
||||
$(@).remove()
|
||||
|
||||
(($) ->
|
||||
_chosen = $.fn.chosen
|
||||
$.fn.extend chosen: (options) ->
|
||||
default_options = search_contains: "true"
|
||||
$.extend default_options, options
|
||||
_chosen.apply @, [default_options]
|
||||
|
||||
# Disable an element and add the 'disabled' Bootstrap class
|
||||
$.fn.extend disable: ->
|
||||
$(@).attr('disabled', 'disabled').addClass('disabled')
|
||||
@@ -1,5 +1,15 @@
|
||||
$ ->
|
||||
$("body").on "click", ".js-details-target", ->
|
||||
container = $(@).closest(".js-details-container")
|
||||
|
||||
container.toggleClass("open")
|
||||
|
||||
# Show details content. Hides link after click.
|
||||
#
|
||||
# %div
|
||||
# %a.js-details-expand
|
||||
# %div.js-details-content
|
||||
#
|
||||
$("body").on "click", ".js-details-expand", (e) ->
|
||||
$(@).next('.js-details-content').removeClass("hide")
|
||||
$(@).hide()
|
||||
e.preventDefault()
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
$ ->
|
||||
$("body").on "click", ".js-toggler-target", ->
|
||||
container = $(@).closest(".js-toggler-container")
|
||||
|
||||
container.toggleClass("on")
|
||||
|
||||
$("body").on "click", ".js-toggle-visibility-link", (e) ->
|
||||
|
||||
# Toggle button. Show/hide content inside parent container.
|
||||
# Button does not change visibility. If button has icon - it changes chevron style.
|
||||
#
|
||||
# %div.js-toggle-container
|
||||
# %a.js-toggle-button
|
||||
# %div.js-toggle-content
|
||||
#
|
||||
$("body").on "click", ".js-toggle-button", (e) ->
|
||||
$(@).find('i').
|
||||
toggleClass('icon-chevron-down').
|
||||
toggleClass('icon-chevron-up')
|
||||
container = $(".js-toggle-visibility-container")
|
||||
container.toggleClass("hide")
|
||||
e.preventDefault()
|
||||
|
||||
$("body").on "click", ".js-toggle-button", (e) ->
|
||||
$(@).closest(".js-toggle-container").find(".js-toggle-content").toggle()
|
||||
e.preventDefault()
|
||||
|
||||
@@ -1,24 +1,76 @@
|
||||
class BlobView
|
||||
constructor: ->
|
||||
# handle multi-line select
|
||||
handleMultiSelect = (e) ->
|
||||
[ first_line, last_line ] = parseSelectedLines()
|
||||
[ line_number ] = parseSelectedLines($(this).attr("id"))
|
||||
hash = "L#{line_number}"
|
||||
|
||||
if e.shiftKey and not isNaN(first_line) and not isNaN(line_number)
|
||||
if line_number < first_line
|
||||
last_line = first_line
|
||||
first_line = line_number
|
||||
else
|
||||
last_line = line_number
|
||||
|
||||
hash = if first_line == last_line then "L#{first_line}" else "L#{first_line}-#{last_line}"
|
||||
|
||||
setHash(hash)
|
||||
e.preventDefault()
|
||||
|
||||
# See if there are lines selected
|
||||
# "#L12" and "#L34-56" supported
|
||||
highlightBlobLines = ->
|
||||
if window.location.hash isnt ""
|
||||
matches = window.location.hash.match(/\#L(\d+)(\-(\d+))?/)
|
||||
highlightBlobLines = (e) ->
|
||||
[ first_line, last_line ] = parseSelectedLines()
|
||||
|
||||
unless isNaN first_line
|
||||
$("#tree-content-holder .highlight .line").removeClass("hll")
|
||||
$("#LC#{line}").addClass("hll") for line in [first_line..last_line]
|
||||
$("#L#{first_line}").ScrollTo() unless e?
|
||||
|
||||
# parse selected lines from hash
|
||||
# always return first and last line (initialized to NaN)
|
||||
parseSelectedLines = (str) ->
|
||||
first_line = NaN
|
||||
last_line = NaN
|
||||
hash = str || window.location.hash
|
||||
|
||||
if hash isnt ""
|
||||
matches = hash.match(/\#?L(\d+)(\-(\d+))?/)
|
||||
first_line = parseInt(matches?[1])
|
||||
last_line = parseInt(matches?[3])
|
||||
last_line = first_line if isNaN(last_line)
|
||||
|
||||
unless isNaN first_line
|
||||
last_line = first_line if isNaN(last_line)
|
||||
$("#tree-content-holder .highlight .line").removeClass("hll")
|
||||
$("#LC#{line}").addClass("hll") for line in [first_line..last_line]
|
||||
$("#L#{first_line}").ScrollTo()
|
||||
[ first_line, last_line ]
|
||||
|
||||
setHash = (hash) ->
|
||||
hash = hash.replace(/^\#/, "")
|
||||
nodes = $("#" + hash)
|
||||
# if any nodes are using this id, they must be temporarily changed
|
||||
# also, add a temporary div at the top of the screen to prevent scrolling
|
||||
if nodes.length > 0
|
||||
scroll_top = $(document).scrollTop()
|
||||
nodes.attr("id", "")
|
||||
tmp = $("<div></div>")
|
||||
.css({ position: "absolute", visibility: "hidden", top: scroll_top + "px" })
|
||||
.attr("id", hash)
|
||||
.appendTo(document.body)
|
||||
|
||||
window.location.hash = hash
|
||||
|
||||
# restore the nodes
|
||||
if nodes.length > 0
|
||||
tmp.remove()
|
||||
nodes.attr("id", hash)
|
||||
|
||||
# initialize multi-line select
|
||||
$("#tree-content-holder .line-numbers a[id^=L]").on("click", handleMultiSelect)
|
||||
|
||||
# Highlight the correct lines on load
|
||||
highlightBlobLines()
|
||||
|
||||
# Highlight the correct lines when the hash part of the URL changes
|
||||
$(window).on 'hashchange', highlightBlobLines
|
||||
$(window).on("hashchange", highlightBlobLines)
|
||||
|
||||
|
||||
@BlobView = BlobView
|
||||
|
||||
@@ -194,11 +194,14 @@ class BranchGraph
|
||||
fill: @colors[commit.space]
|
||||
stroke: "none"
|
||||
)
|
||||
r.rect(@offsetX + @unitSpace * @mspace + 10, y - 10, 20, 20).attr(
|
||||
fill: "url(#{commit.author.icon})"
|
||||
|
||||
avatar_box_x = @offsetX + @unitSpace * @mspace + 10
|
||||
avatar_box_y = y - 10
|
||||
r.rect(avatar_box_x, avatar_box_y, 20, 20).attr(
|
||||
stroke: @colors[commit.space]
|
||||
"stroke-width": 2
|
||||
)
|
||||
r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20)
|
||||
r.text(@offsetX + @unitSpace * @mspace + 35, y, commit.message.split("\n")[0]).attr(
|
||||
"text-anchor": "start"
|
||||
font: "14px Monaco, monospace"
|
||||
@@ -271,7 +274,7 @@ class BranchGraph
|
||||
Raphael::commitTooltip = (x, y, commit) ->
|
||||
boxWidth = 300
|
||||
boxHeight = 200
|
||||
icon = @image(commit.author.icon, x, y, 20, 20)
|
||||
icon = @image(gon.relative_url_root + commit.author.icon, x, y, 20, 20)
|
||||
nameText = @text(x + 25, y + 10, commit.author.name)
|
||||
idText = @text(x, y + 35, commit.id)
|
||||
messageText = @text(x, y + 50, commit.message)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class Commit
|
||||
constructor: ->
|
||||
$('.files .file').each ->
|
||||
$('.files .diff-file').each ->
|
||||
new CommitFile(this)
|
||||
|
||||
@Commit = Commit
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class CommitFile
|
||||
|
||||
|
||||
constructor: (file) ->
|
||||
if $('.image', file).length
|
||||
new ImageFile(file)
|
||||
|
||||
this.CommitFile = CommitFile
|
||||
|
||||
@CommitFile = CommitFile
|
||||
|
||||
@@ -125,4 +125,4 @@ class ImageFile
|
||||
img.on 'load', =>
|
||||
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
|
||||
|
||||
this.ImageFile = ImageFile
|
||||
@ImageFile = ImageFile
|
||||
|
||||
@@ -4,13 +4,13 @@ class CommitsList
|
||||
limit: 0
|
||||
offset: 0
|
||||
@disable = false
|
||||
|
||||
|
||||
@showProgress: ->
|
||||
$('.loading').show()
|
||||
|
||||
|
||||
@hideProgress: ->
|
||||
$('.loading').hide()
|
||||
|
||||
|
||||
@init: (ref, limit) ->
|
||||
$(".day-commits-table li.commit").live 'click', (event) ->
|
||||
if event.target.nodeName != "A"
|
||||
@@ -21,7 +21,7 @@ class CommitsList
|
||||
@data.ref = ref
|
||||
@data.limit = limit
|
||||
@data.offset = limit
|
||||
|
||||
|
||||
this.initLoadMore()
|
||||
this.showProgress()
|
||||
|
||||
@@ -32,7 +32,9 @@ class CommitsList
|
||||
url: location.href
|
||||
data: @data
|
||||
complete: this.hideProgress
|
||||
dataType: "script"
|
||||
success: (data) ->
|
||||
CommitsList.append(data.count, data.html)
|
||||
dataType: "json"
|
||||
|
||||
@append: (count, html) ->
|
||||
$("#commits-list").append(html)
|
||||
@@ -40,7 +42,7 @@ class CommitsList
|
||||
@data.offset += count
|
||||
else
|
||||
@disable = true
|
||||
|
||||
|
||||
@initLoadMore: ->
|
||||
$(document).unbind('scroll')
|
||||
$(document).endlessScroll
|
||||
|
||||
@@ -4,6 +4,7 @@ $ ->
|
||||
class Dispatcher
|
||||
constructor: () ->
|
||||
@initSearch()
|
||||
@initHighlight()
|
||||
@initPageScripts()
|
||||
|
||||
initPageScripts: ->
|
||||
@@ -18,6 +19,8 @@ class Dispatcher
|
||||
switch page
|
||||
when 'projects:issues:index'
|
||||
Issues.init()
|
||||
when 'projects:issues:show'
|
||||
new Issue()
|
||||
when 'projects:issues:new', 'projects:merge_requests:new'
|
||||
GitLab.GfmAutoComplete.setup()
|
||||
when 'dashboard:show'
|
||||
@@ -47,5 +50,16 @@ class Dispatcher
|
||||
|
||||
|
||||
initSearch: ->
|
||||
autocomplete_json = $('.search-autocomplete-json').data('autocomplete-opts')
|
||||
new SearchAutocomplete(autocomplete_json)
|
||||
opts = $('.search-autocomplete-opts')
|
||||
path = opts.data('autocomplete-path')
|
||||
project_id = opts.data('autocomplete-project-id')
|
||||
project_ref = opts.data('autocomplete-project-ref')
|
||||
|
||||
new SearchAutocomplete(path, project_id, project_ref)
|
||||
|
||||
initHighlight: ->
|
||||
$('.highlight pre code').each (i, e) ->
|
||||
$(e).html($.map($(e).html().split("\n"), (line, i) ->
|
||||
"<span class='line' id='LC" + (i + 1) + "'>" + line + "</span>"
|
||||
).join("\n"))
|
||||
hljs.highlightBlock(e)
|
||||
|
||||
@@ -6,13 +6,13 @@ GitLab.GfmAutoComplete =
|
||||
dataSource: ''
|
||||
# Emoji
|
||||
Emoji:
|
||||
assetBase: ''
|
||||
template: '<li data-value="${insert}">${name} <img alt="${name}" height="20" src="${image}" width="20" /></li>'
|
||||
|
||||
# Team Members
|
||||
Members:
|
||||
template: '<li data-value="${username}">${username} <small>${name}</small></li>'
|
||||
|
||||
# Issues and MergeRequests
|
||||
Issues:
|
||||
template: '<li data-value="${id}"><small>${id}</small> ${title} </li>'
|
||||
|
||||
@@ -26,7 +26,7 @@ GitLab.GfmAutoComplete =
|
||||
tpl: @Emoji.template
|
||||
callbacks:
|
||||
before_save: (emojis) =>
|
||||
$.map emojis, (em) => name: em, insert: em+ ':', image: "#{@Emoji.assetBase}/#{em}.png"
|
||||
$.map emojis, (em) => name: em.name, insert: em.name+ ':', image: em.path
|
||||
|
||||
# Team Members
|
||||
input.atwho
|
||||
@@ -46,11 +46,22 @@ GitLab.GfmAutoComplete =
|
||||
before_save: (issues) ->
|
||||
$.map issues, (i) -> id: i.iid, title: sanitize(i.title), search: "#{i.iid} #{i.title}"
|
||||
|
||||
input.atwho
|
||||
at: '!'
|
||||
alias: 'mergerequests'
|
||||
search_key: 'search'
|
||||
tpl: @Issues.template
|
||||
callbacks:
|
||||
before_save: (merges) ->
|
||||
$.map merges, (m) -> id: m.iid, title: sanitize(m.title), search: "#{m.iid} #{m.title}"
|
||||
|
||||
input.one "focus", =>
|
||||
$.getJSON(@dataSource).done (data) ->
|
||||
# load members
|
||||
input.atwho 'load', "@", data.members
|
||||
# load issues
|
||||
input.atwho 'load', "issues", data.issues
|
||||
# load merge requests
|
||||
input.atwho 'load', "mergerequests", data.mergerequests
|
||||
# load emojis
|
||||
input.atwho 'load', ":", data.emojis
|
||||
|
||||
@@ -4,3 +4,14 @@ class GroupMembers
|
||||
$(this).fadeOut()
|
||||
|
||||
@GroupMembers = GroupMembers
|
||||
|
||||
$ ->
|
||||
# avatar
|
||||
$('.js-choose-group-avatar-button').bind "click", ->
|
||||
form = $(this).closest("form")
|
||||
form.find(".js-group-avatar-input").click()
|
||||
|
||||
$('.js-group-avatar-input').bind "change", ->
|
||||
form = $(this).closest("form")
|
||||
filename = $(this).val().replace(/^.*[\\\/]/, '')
|
||||
form.find(".js-avatar-filename").text(filename)
|
||||
@@ -0,0 +1,9 @@
|
||||
class Issue
|
||||
constructor: ->
|
||||
$('.edit-issue.inline-update input[type="submit"]').hide()
|
||||
$(".issue-box .inline-update").on "change", "select", ->
|
||||
$(this).submit()
|
||||
$(".issue-box .inline-update").on "change", "#issue_assignee_id", ->
|
||||
$(this).submit()
|
||||
|
||||
@Issue = Issue
|
||||
@@ -22,19 +22,17 @@
|
||||
backgroundColor: '#DDD'
|
||||
opacity: .4
|
||||
)
|
||||
|
||||
|
||||
reload: ->
|
||||
Issues.initSelects()
|
||||
Issues.initChecks()
|
||||
$('#filter_issue_search').val($('#issue_search').val())
|
||||
|
||||
initSelects: ->
|
||||
$("#update_status").chosen()
|
||||
$("#update_assignee_id").chosen()
|
||||
$("#update_milestone_id").chosen()
|
||||
$("#label_name").chosen()
|
||||
$("#assignee_id").chosen()
|
||||
$("#milestone_id").chosen()
|
||||
$("select#update_status").select2(width: 'resolve', dropdownAutoWidth: true)
|
||||
$("select#update_assignee_id").select2(width: 'resolve', dropdownAutoWidth: true)
|
||||
$("select#update_milestone_id").select2(width: 'resolve', dropdownAutoWidth: true)
|
||||
$("select#label_name").select2(width: 'resolve', dropdownAutoWidth: true)
|
||||
$("#milestone_id, #assignee_id, #label_name").on "change", ->
|
||||
$(this).closest("form").submit()
|
||||
|
||||
@@ -54,7 +52,16 @@
|
||||
unless terms is last_terms
|
||||
last_terms = terms
|
||||
if terms.length >= 2 or terms.length is 0
|
||||
form.submit()
|
||||
$.ajax
|
||||
type: "GET"
|
||||
url: location.href
|
||||
data: "issue_search=" + terms
|
||||
complete: ->
|
||||
$(".loading").hide()
|
||||
success: (data) ->
|
||||
$('.issues-holder').html(data.html)
|
||||
Issues.reload()
|
||||
dataType: "json"
|
||||
|
||||
checkChanged: ->
|
||||
checked_issues = $(".selected_issue:checked")
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
class MergeRequest
|
||||
constructor: (@opts) ->
|
||||
@initContextWidget()
|
||||
this.$el = $('.merge-request')
|
||||
@diffs_loaded = if @opts.action == 'diffs' then true else false
|
||||
@commits_loaded = false
|
||||
|
||||
this.activateTab(@opts.action)
|
||||
|
||||
this.bindEvents()
|
||||
|
||||
this.initMergeWidget()
|
||||
this.$('.show-all-commits').on 'click', =>
|
||||
this.showAllCommits()
|
||||
|
||||
modal = $('#modal_merge_info').modal(show: false)
|
||||
|
||||
disableButtonIfEmptyField '#merge_commit_message', '.accept_merge_request'
|
||||
|
||||
|
||||
# Local jQuery finder
|
||||
$: (selector) ->
|
||||
this.$el.find(selector)
|
||||
|
||||
initContextWidget: ->
|
||||
$('.edit-merge_request.inline-update input[type="submit"]').hide()
|
||||
$(".issue-box .inline-update").on "change", "select", ->
|
||||
$(this).submit()
|
||||
$(".issue-box .inline-update").on "change", "#merge_request_assignee_id", ->
|
||||
$(this).submit()
|
||||
|
||||
initMergeWidget: ->
|
||||
this.showState( @opts.current_status )
|
||||
|
||||
if this.$('.automerge_widget').length and @opts.check_enable
|
||||
$.get @opts.url_to_automerge_check, (data) =>
|
||||
this.showState( data.merge_status )
|
||||
, 'json'
|
||||
|
||||
if @opts.ci_enable
|
||||
$.get @opts.url_to_ci_check, (data) =>
|
||||
this.showCiState data.status
|
||||
, 'json'
|
||||
|
||||
bindEvents: ->
|
||||
this.$('.nav-tabs').on 'click', 'a', (event) =>
|
||||
a = $(event.currentTarget)
|
||||
|
||||
href = a.attr('href')
|
||||
History.replaceState {path: href}, document.title, href
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
this.$('.nav-tabs').on 'click', 'li', (event) =>
|
||||
this.activateTab($(event.currentTarget).data('action'))
|
||||
|
||||
this.$('.accept_merge_request').on 'click', ->
|
||||
$('.automerge_widget.can_be_merged').hide()
|
||||
$('.merge-in-progress').show()
|
||||
|
||||
this.$('.remove_source_branch').on 'click', ->
|
||||
$('.remove_source_branch_widget').hide()
|
||||
$('.remove_source_branch_in_progress').show()
|
||||
|
||||
this.$(".remove_source_branch").on "ajax:success", (e, data, status, xhr) ->
|
||||
location.reload()
|
||||
|
||||
this.$(".remove_source_branch").on "ajax:error", (e, data, status, xhr) =>
|
||||
this.$('.remove_source_branch_widget').hide()
|
||||
this.$('.remove_source_branch_in_progress').hide()
|
||||
this.$('.remove_source_branch_widget.failed').show()
|
||||
|
||||
activateTab: (action) ->
|
||||
this.$('.nav-tabs li').removeClass 'active'
|
||||
this.$('.tab-content').hide()
|
||||
switch action
|
||||
when 'diffs'
|
||||
this.$('.nav-tabs .diffs-tab').addClass 'active'
|
||||
this.loadDiff() unless @diffs_loaded
|
||||
this.$('.diffs').show()
|
||||
else
|
||||
this.$('.nav-tabs .notes-tab').addClass 'active'
|
||||
this.$('.notes').show()
|
||||
|
||||
showState: (state) ->
|
||||
$('.automerge_widget').hide()
|
||||
$('.automerge_widget.' + state).show()
|
||||
|
||||
showCiState: (state) ->
|
||||
$('.ci_widget').hide()
|
||||
allowed_states = ["failed", "running", "pending", "success"]
|
||||
if state in allowed_states
|
||||
$('.ci_widget.ci-' + state).show()
|
||||
else
|
||||
$('.ci_widget.ci-error').show()
|
||||
|
||||
switch state
|
||||
when "success"
|
||||
$('.mr-state-widget').addClass("panel-success")
|
||||
when "failed"
|
||||
$('.mr-state-widget').addClass("panel-danger")
|
||||
when "running", "pending"
|
||||
$('.mr-state-widget').addClass("panel-warning")
|
||||
|
||||
|
||||
|
||||
loadDiff: (event) ->
|
||||
$.ajax
|
||||
type: 'GET'
|
||||
url: this.$('.nav-tabs .diffs-tab a').attr('href')
|
||||
beforeSend: =>
|
||||
this.$('.status').addClass 'loading'
|
||||
complete: =>
|
||||
@diffs_loaded = true
|
||||
this.$('.status').removeClass 'loading'
|
||||
success: (data) =>
|
||||
this.$(".diffs").html(data.html)
|
||||
dataType: 'json'
|
||||
|
||||
showAllCommits: ->
|
||||
this.$('.first-commits').remove()
|
||||
this.$('.all-commits').removeClass 'hide'
|
||||
|
||||
alreadyOrCannotBeMerged: ->
|
||||
this.$('.automerge_widget').hide()
|
||||
this.$('.merge-in-progress').hide()
|
||||
this.$('.automerge_widget.already_cannot_be_merged').show()
|
||||
|
||||
this.MergeRequest = MergeRequest
|
||||
@@ -2,101 +2,7 @@
|
||||
# * Filter merge requests
|
||||
#
|
||||
@merge_requestsPage = ->
|
||||
$('#assignee_id').chosen()
|
||||
$('#milestone_id').chosen()
|
||||
$('#assignee_id').select2()
|
||||
$('#milestone_id').select2()
|
||||
$('#milestone_id, #assignee_id').on 'change', ->
|
||||
$(this).closest('form').submit()
|
||||
|
||||
class MergeRequest
|
||||
|
||||
constructor: (@opts) ->
|
||||
this.$el = $('.merge-request')
|
||||
@diffs_loaded = if @opts.action == 'diffs' then true else false
|
||||
@commits_loaded = false
|
||||
|
||||
this.activateTab(@opts.action)
|
||||
|
||||
this.bindEvents()
|
||||
|
||||
this.initMergeWidget()
|
||||
this.$('.show-all-commits').on 'click', =>
|
||||
this.showAllCommits()
|
||||
|
||||
modal = $('#modal_merge_info').modal(show: false)
|
||||
|
||||
# Local jQuery finder
|
||||
$: (selector) ->
|
||||
this.$el.find(selector)
|
||||
|
||||
initMergeWidget: ->
|
||||
this.showState( @opts.current_status )
|
||||
|
||||
if this.$('.automerge_widget').length and @opts.check_enable
|
||||
$.get @opts.url_to_automerge_check, (data) =>
|
||||
this.showState( data.merge_status )
|
||||
, 'json'
|
||||
|
||||
if @opts.ci_enable
|
||||
$.get @opts.url_to_ci_check, (data) =>
|
||||
this.showCiState data.status
|
||||
, 'json'
|
||||
|
||||
bindEvents: ->
|
||||
this.$('.nav-tabs').on 'click', 'a', (event) =>
|
||||
a = $(event.currentTarget)
|
||||
|
||||
href = a.attr('href')
|
||||
History.replaceState {path: href}, document.title, href
|
||||
|
||||
event.preventDefault()
|
||||
|
||||
this.$('.nav-tabs').on 'click', 'li', (event) =>
|
||||
this.activateTab($(event.currentTarget).data('action'))
|
||||
|
||||
this.$('.accept_merge_request').on 'click', ->
|
||||
$('.automerge_widget.can_be_merged').hide()
|
||||
$('.merge-in-progress').show()
|
||||
|
||||
activateTab: (action) ->
|
||||
this.$('.nav-tabs li').removeClass 'active'
|
||||
this.$('.tab-content').hide()
|
||||
switch action
|
||||
when 'diffs'
|
||||
this.$('.nav-tabs .diffs-tab').addClass 'active'
|
||||
this.loadDiff() unless @diffs_loaded
|
||||
this.$('.diffs').show()
|
||||
else
|
||||
this.$('.nav-tabs .notes-tab').addClass 'active'
|
||||
this.$('.notes').show()
|
||||
|
||||
showState: (state) ->
|
||||
$('.automerge_widget').hide()
|
||||
$('.automerge_widget.' + state).show()
|
||||
|
||||
showCiState: (state) ->
|
||||
$('.ci_widget').hide()
|
||||
$('.ci_widget.ci-' + state).show()
|
||||
|
||||
loadDiff: (event) ->
|
||||
$.ajax
|
||||
type: 'GET'
|
||||
url: this.$('.nav-tabs .diffs-tab a').attr('href')
|
||||
beforeSend: =>
|
||||
this.$('.status').addClass 'loading'
|
||||
|
||||
complete: =>
|
||||
@diffs_loaded = true
|
||||
this.$('.status').removeClass 'loading'
|
||||
|
||||
dataType: 'script'
|
||||
|
||||
showAllCommits: ->
|
||||
this.$('.first-commits').remove()
|
||||
this.$('.all-commits').removeClass 'hide'
|
||||
|
||||
alreadyOrCannotBeMerged: ->
|
||||
this.$('.automerge_widget').hide()
|
||||
this.$('.merge-in-progress').hide()
|
||||
this.$('.automerge_widget.already_cannot_be_merged').show()
|
||||
|
||||
this.MergeRequest = MergeRequest
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
$ ->
|
||||
namespaceFormatResult = (namespace) ->
|
||||
markup = "<div class='namespace-result'>"
|
||||
markup += "<span class='namespace-kind'>" + namespace.kind + "</span>"
|
||||
markup += "<span class='namespace-path'>" + namespace.path + "</span>"
|
||||
markup += "</div>"
|
||||
markup
|
||||
|
||||
formatSelection = (namespace) ->
|
||||
namespace.kind + ": " + namespace.path
|
||||
|
||||
$('.ajax-namespace-select').each (i, select) ->
|
||||
$(select).select2
|
||||
placeholder: "Search for namespace"
|
||||
multiple: $(select).hasClass('multiselect')
|
||||
minimumInputLength: 0
|
||||
query: (query) ->
|
||||
Api.namespaces query.term, (namespaces) ->
|
||||
data = { results: namespaces }
|
||||
query.callback(data)
|
||||
|
||||
dropdownCssClass: "ajax-namespace-dropdown"
|
||||
formatResult: namespaceFormatResult
|
||||
formatSelection: formatSelection
|
||||
@@ -1,580 +0,0 @@
|
||||
var NoteList = {
|
||||
id: null,
|
||||
notes_path: null,
|
||||
target_params: null,
|
||||
target_id: 0,
|
||||
target_type: null,
|
||||
|
||||
init: function(tid, tt, path) {
|
||||
NoteList.notes_path = path + ".js";
|
||||
NoteList.target_id = tid;
|
||||
NoteList.target_type = tt;
|
||||
NoteList.target_params = "target_type=" + NoteList.target_type + "&target_id=" + NoteList.target_id;
|
||||
|
||||
NoteList.setupMainTargetNoteForm();
|
||||
|
||||
// get initial set of notes
|
||||
NoteList.getContent();
|
||||
|
||||
// Unbind events to prevent firing twice
|
||||
$(document).off("click", ".js-add-diff-note-button");
|
||||
$(document).off("click", ".js-discussion-reply-button");
|
||||
$(document).off("click", ".js-note-preview-button");
|
||||
$(document).off("click", ".js-note-attachment-input");
|
||||
$(document).off("click", ".js-close-discussion-note-form");
|
||||
$(document).off("click", ".js-note-delete");
|
||||
$(document).off("click", ".js-note-edit");
|
||||
$(document).off("click", ".js-note-edit-cancel");
|
||||
$(document).off("click", ".js-note-attachment-delete");
|
||||
$(document).off("click", ".js-choose-note-attachment-button");
|
||||
$(document).off("click", ".js-show-outdated-discussion");
|
||||
|
||||
$(document).off("ajax:complete", ".js-main-target-form");
|
||||
|
||||
|
||||
// add a new diff note
|
||||
$(document).on("click",
|
||||
".js-add-diff-note-button",
|
||||
NoteList.addDiffNote);
|
||||
|
||||
// reply to diff/discussion notes
|
||||
$(document).on("click",
|
||||
".js-discussion-reply-button",
|
||||
NoteList.replyToDiscussionNote);
|
||||
|
||||
// setup note preview
|
||||
$(document).on("click",
|
||||
".js-note-preview-button",
|
||||
NoteList.previewNote);
|
||||
|
||||
// update the file name when an attachment is selected
|
||||
$(document).on("change",
|
||||
".js-note-attachment-input",
|
||||
NoteList.updateFormAttachment);
|
||||
|
||||
// hide diff note form
|
||||
$(document).on("click",
|
||||
".js-close-discussion-note-form",
|
||||
NoteList.removeDiscussionNoteForm);
|
||||
|
||||
// remove a note (in general)
|
||||
$(document).on("click",
|
||||
".js-note-delete",
|
||||
NoteList.removeNote);
|
||||
|
||||
// show the edit note form
|
||||
$(document).on("click",
|
||||
".js-note-edit",
|
||||
NoteList.showEditNoteForm);
|
||||
|
||||
// cancel note editing
|
||||
$(document).on("click",
|
||||
".note-edit-cancel",
|
||||
NoteList.cancelNoteEdit);
|
||||
|
||||
// delete note attachment
|
||||
$(document).on("click",
|
||||
".js-note-attachment-delete",
|
||||
NoteList.deleteNoteAttachment);
|
||||
|
||||
// update the note after editing
|
||||
$(document).on("ajax:complete",
|
||||
"form.edit_note",
|
||||
NoteList.updateNote);
|
||||
|
||||
// reset main target form after submit
|
||||
$(document).on("ajax:complete",
|
||||
".js-main-target-form",
|
||||
NoteList.resetMainTargetForm);
|
||||
|
||||
|
||||
$(document).on("click",
|
||||
".js-choose-note-attachment-button",
|
||||
NoteList.chooseNoteAttachment);
|
||||
|
||||
$(document).on("click",
|
||||
".js-show-outdated-discussion",
|
||||
function(e) { $(this).next('.outdated-discussion').show(); e.preventDefault() });
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* When clicking on buttons
|
||||
*/
|
||||
|
||||
/**
|
||||
* Called when clicking on the "add a comment" button on the side of a diff line.
|
||||
*
|
||||
* Inserts a temporary row for the form below the line.
|
||||
* Sets up the form and shows it.
|
||||
*/
|
||||
addDiffNote: function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// find the form
|
||||
var form = $(".js-new-note-form");
|
||||
var row = $(this).closest("tr");
|
||||
var nextRow = row.next();
|
||||
|
||||
// does it already have notes?
|
||||
if (nextRow.is(".notes_holder")) {
|
||||
$.proxy(NoteList.replyToDiscussionNote,
|
||||
nextRow.find(".js-discussion-reply-button")
|
||||
).call();
|
||||
} else {
|
||||
// add a notes row and insert the form
|
||||
row.after('<tr class="notes_holder js-temp-notes-holder"><td class="notes_line" colspan="2"></td><td class="notes_content"></td></tr>');
|
||||
form.clone().appendTo(row.next().find(".notes_content"));
|
||||
|
||||
// show the form
|
||||
NoteList.setupDiscussionNoteForm($(this), row.next().find("form"));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called when clicking the "Choose File" button.
|
||||
*
|
||||
* Opens the file selection dialog.
|
||||
*/
|
||||
chooseNoteAttachment: function() {
|
||||
var form = $(this).closest("form");
|
||||
|
||||
form.find(".js-note-attachment-input").click();
|
||||
},
|
||||
|
||||
/**
|
||||
* Shows the note preview.
|
||||
*
|
||||
* Lets the server render GFM into Html and displays it.
|
||||
*
|
||||
* Note: uses the Toggler behavior to toggle preview/edit views/buttons
|
||||
*/
|
||||
previewNote: function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
var form = $(this).closest("form");
|
||||
var preview = form.find('.js-note-preview');
|
||||
var noteText = form.find('.js-note-text').val();
|
||||
|
||||
if(noteText.trim().length === 0) {
|
||||
preview.text('Nothing to preview.');
|
||||
} else {
|
||||
preview.text('Loading...');
|
||||
$.post($(this).data('url'), {note: noteText})
|
||||
.success(function(previewData) {
|
||||
preview.html(previewData);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to "cancel" on a diff note form.
|
||||
*
|
||||
* Shows the reply button again.
|
||||
* Removes the form and if necessary it's temporary row.
|
||||
*/
|
||||
removeDiscussionNoteForm: function() {
|
||||
var form = $(this).closest("form");
|
||||
var row = form.closest("tr");
|
||||
|
||||
// show the reply button (will only work for replies)
|
||||
form.prev(".js-discussion-reply-button").show();
|
||||
|
||||
if (row.is(".js-temp-notes-holder")) {
|
||||
// remove temporary row for diff lines
|
||||
row.remove();
|
||||
} else {
|
||||
// only remove the form
|
||||
form.remove();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to deleting a note of any kind.
|
||||
*
|
||||
* Removes the actual note from view.
|
||||
* Removes the whole discussion if the last note is being removed.
|
||||
*/
|
||||
removeNote: function() {
|
||||
var note = $(this).closest(".note");
|
||||
var notes = note.closest(".notes");
|
||||
|
||||
// check if this is the last note for this line
|
||||
if (notes.find(".note").length === 1) {
|
||||
// for discussions
|
||||
notes.closest(".discussion").remove();
|
||||
|
||||
// for diff lines
|
||||
notes.closest("tr").remove();
|
||||
}
|
||||
|
||||
note.remove();
|
||||
NoteList.updateVotes();
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to clicking the edit note link
|
||||
*
|
||||
* Replaces the note text with the note edit form
|
||||
* Adds a hidden div with the original content of the note to fill the edit note form with
|
||||
* if the user cancels
|
||||
*/
|
||||
showEditNoteForm: function(e) {
|
||||
e.preventDefault();
|
||||
var note = $(this).closest(".note");
|
||||
note.find(".note-text").hide();
|
||||
|
||||
// Show the attachment delete link
|
||||
note.find(".js-note-attachment-delete").show();
|
||||
|
||||
GitLab.GfmAutoComplete.setup();
|
||||
|
||||
var form = note.find(".note-edit-form");
|
||||
form.show();
|
||||
|
||||
var textarea = form.find("textarea");
|
||||
var p = $("<p></p>").text(textarea.val());
|
||||
var hidden_div = $('<div class="note-original-content"></div>').append(p);
|
||||
form.append(hidden_div);
|
||||
hidden_div.hide();
|
||||
textarea.focus();
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to clicking the cancel button when editing a note
|
||||
*
|
||||
* Resets and hides the note editing form
|
||||
*/
|
||||
cancelNoteEdit: function(e) {
|
||||
e.preventDefault();
|
||||
var note = $(this).closest(".note");
|
||||
NoteList.resetNoteEditing(note);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Called in response to clicking the delete attachment link
|
||||
*
|
||||
* Removes the attachment wrapper view, including image tag if it exists
|
||||
* Resets the note editing form
|
||||
*/
|
||||
deleteNoteAttachment: function() {
|
||||
var note = $(this).closest(".note");
|
||||
note.find(".note-attachment").remove();
|
||||
NoteList.resetNoteEditing(note);
|
||||
NoteList.rewriteTimestamp(note.find(".note-last-update"));
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Called when clicking on the "reply" button for a diff line.
|
||||
*
|
||||
* Shows the note form below the notes.
|
||||
*/
|
||||
replyToDiscussionNote: function() {
|
||||
// find the form
|
||||
var form = $(".js-new-note-form");
|
||||
|
||||
// hide reply button
|
||||
$(this).hide();
|
||||
// insert the form after the button
|
||||
form.clone().insertAfter($(this));
|
||||
|
||||
// show the form
|
||||
NoteList.setupDiscussionNoteForm($(this), $(this).next("form"));
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Helper for inserting and setting up note forms.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Called in response to creating a note failing validation.
|
||||
*
|
||||
* Adds the rendered errors to the respective form.
|
||||
* If "discussionId" is null or undefined, the main target form is assumed.
|
||||
*/
|
||||
errorsOnForm: function(errorsHtml, discussionId) {
|
||||
// find the form
|
||||
if (discussionId) {
|
||||
var form = $("form[rel='"+discussionId+"']");
|
||||
} else {
|
||||
var form = $(".js-main-target-form");
|
||||
}
|
||||
|
||||
form.find(".js-errors").remove();
|
||||
form.prepend(errorsHtml);
|
||||
|
||||
form.find(".js-note-text").focus();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Shows the diff/discussion form and does some setup on it.
|
||||
*
|
||||
* Sets some hidden fields in the form.
|
||||
*
|
||||
* Note: dataHolder must have the "discussionId", "lineCode", "noteableType"
|
||||
* and "noteableId" data attributes set.
|
||||
*/
|
||||
setupDiscussionNoteForm: function(dataHolder, form) {
|
||||
// setup note target
|
||||
form.attr("rel", dataHolder.data("discussionId"));
|
||||
form.find("#note_commit_id").val(dataHolder.data("commitId"));
|
||||
form.find("#note_line_code").val(dataHolder.data("lineCode"));
|
||||
form.find("#note_noteable_type").val(dataHolder.data("noteableType"));
|
||||
form.find("#note_noteable_id").val(dataHolder.data("noteableId"));
|
||||
|
||||
NoteList.setupNoteForm(form);
|
||||
|
||||
form.find(".js-note-text").focus();
|
||||
},
|
||||
|
||||
/**
|
||||
* Shows the main form and does some setup on it.
|
||||
*
|
||||
* Sets some hidden fields in the form.
|
||||
*/
|
||||
setupMainTargetNoteForm: function() {
|
||||
// find the form
|
||||
var form = $(".js-new-note-form");
|
||||
// insert the form after the button
|
||||
form.clone().replaceAll($(".js-main-target-form"));
|
||||
|
||||
form = form.prev("form");
|
||||
|
||||
// show the form
|
||||
NoteList.setupNoteForm(form);
|
||||
|
||||
// fix classes
|
||||
form.removeClass("js-new-note-form");
|
||||
form.addClass("js-main-target-form");
|
||||
|
||||
// remove unnecessary fields and buttons
|
||||
form.find("#note_line_code").remove();
|
||||
form.find(".js-close-discussion-note-form").remove();
|
||||
},
|
||||
|
||||
/**
|
||||
* General note form setup.
|
||||
*
|
||||
* * deactivates the submit button when text is empty
|
||||
* * hides the preview button when text is empty
|
||||
* * setup GFM auto complete
|
||||
* * show the form
|
||||
*/
|
||||
setupNoteForm: function(form) {
|
||||
disableButtonIfEmptyField(form.find(".js-note-text"), form.find(".js-comment-button"));
|
||||
|
||||
form.removeClass("js-new-note-form");
|
||||
|
||||
// setup preview buttons
|
||||
form.find(".js-note-edit-button, .js-note-preview-button")
|
||||
.tooltip({ placement: 'left' });
|
||||
|
||||
previewButton = form.find(".js-note-preview-button");
|
||||
form.find(".js-note-text").on("input", function() {
|
||||
if ($(this).val().trim() !== "") {
|
||||
previewButton.removeClass("turn-off").addClass("turn-on");
|
||||
} else {
|
||||
previewButton.removeClass("turn-on").addClass("turn-off");
|
||||
}
|
||||
});
|
||||
|
||||
// remove notify commit author checkbox for non-commit notes
|
||||
if (form.find("#note_noteable_type").val() !== "Commit") {
|
||||
form.find(".js-notify-commit-author").remove();
|
||||
}
|
||||
|
||||
GitLab.GfmAutoComplete.setup();
|
||||
|
||||
form.show();
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Handle loading the initial set of notes.
|
||||
* And set up loading more notes when scrolling to the bottom of the page.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Gets an initial set of notes.
|
||||
*/
|
||||
getContent: function() {
|
||||
$.ajax({
|
||||
url: NoteList.notes_path,
|
||||
data: NoteList.target_params,
|
||||
complete: function(){ $('.js-notes-busy').removeClass("loading")},
|
||||
beforeSend: function() { $('.js-notes-busy').addClass("loading") },
|
||||
dataType: "script"
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to getContent().
|
||||
* Replaces the content of #notes-list with the given html.
|
||||
*/
|
||||
setContent: function(newNoteIds, html) {
|
||||
$("#notes-list").html(html);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Adds a single common note to #notes-list.
|
||||
*/
|
||||
appendNewNote: function(id, html) {
|
||||
$("#notes-list").append(html);
|
||||
NoteList.updateVotes();
|
||||
},
|
||||
|
||||
/**
|
||||
* Adds a single discussion note to #notes-list.
|
||||
*
|
||||
* Also removes the corresponding form.
|
||||
*/
|
||||
appendNewDiscussionNote: function(discussionId, diffRowHtml, noteHtml) {
|
||||
var form = $("form[rel='"+discussionId+"']");
|
||||
var row = form.closest("tr");
|
||||
|
||||
// is this the first note of discussion?
|
||||
if (row.is(".js-temp-notes-holder")) {
|
||||
// insert the note and the reply button after the temp row
|
||||
row.after(diffRowHtml);
|
||||
// remove the note (will be added again below)
|
||||
row.next().find(".note").remove();
|
||||
}
|
||||
|
||||
// append new note to all matching discussions
|
||||
$(".notes[rel='"+discussionId+"']").append(noteHtml);
|
||||
|
||||
// cleanup after successfully creating a diff/discussion note
|
||||
$.proxy(NoteList.removeDiscussionNoteForm, form).call();
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response the main target form has been successfully submitted.
|
||||
*
|
||||
* Removes any errors.
|
||||
* Resets text and preview.
|
||||
* Resets buttons.
|
||||
*/
|
||||
resetMainTargetForm: function(){
|
||||
var form = $(this);
|
||||
|
||||
// remove validation errors
|
||||
form.find(".js-errors").remove();
|
||||
|
||||
// reset text and preview
|
||||
var previewContainer = form.find(".js-toggler-container.note_text_and_preview");
|
||||
if (previewContainer.is(".on")) {
|
||||
previewContainer.removeClass("on");
|
||||
}
|
||||
form.find(".js-note-text").val("").trigger("input");
|
||||
},
|
||||
|
||||
/**
|
||||
* Called after an attachment file has been selected.
|
||||
*
|
||||
* Updates the file name for the selected attachment.
|
||||
*/
|
||||
updateFormAttachment: function() {
|
||||
var form = $(this).closest("form");
|
||||
|
||||
// get only the basename
|
||||
var filename = $(this).val().replace(/^.*[\\\/]/, '');
|
||||
|
||||
form.find(".js-attachment-filename").text(filename);
|
||||
},
|
||||
|
||||
/**
|
||||
* Recalculates the votes and updates them (if they are displayed at all).
|
||||
*
|
||||
* Assumes all relevant notes are displayed (i.e. there are no more notes to
|
||||
* load via getMore()).
|
||||
* Might produce inaccurate results when not all notes have been loaded and a
|
||||
* recalculation is triggered (e.g. when deleting a note).
|
||||
*/
|
||||
updateVotes: function() {
|
||||
var votes = $("#votes .votes");
|
||||
var notes = $("#notes-list .note .vote");
|
||||
|
||||
// only update if there is a vote display
|
||||
if (votes.size()) {
|
||||
var upvotes = notes.filter(".upvote").size();
|
||||
var downvotes = notes.filter(".downvote").size();
|
||||
var votesCount = upvotes + downvotes;
|
||||
var upvotesPercent = votesCount ? (100.0 / votesCount * upvotes) : 0;
|
||||
var downvotesPercent = votesCount ? (100.0 - upvotesPercent) : 0;
|
||||
|
||||
// change vote bar lengths
|
||||
votes.find(".bar-success").css("width", upvotesPercent+"%");
|
||||
votes.find(".bar-danger").css("width", downvotesPercent+"%");
|
||||
// replace vote numbers
|
||||
votes.find(".upvotes").text(votes.find(".upvotes").text().replace(/\d+/, upvotes));
|
||||
votes.find(".downvotes").text(votes.find(".downvotes").text().replace(/\d+/, downvotes));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to the edit note form being submitted
|
||||
*
|
||||
* Updates the current note field.
|
||||
* Hides the edit note form
|
||||
*/
|
||||
updateNote: function(e, xhr, settings) {
|
||||
response = JSON.parse(xhr.responseText);
|
||||
if (response.success) {
|
||||
var note_li = $("#note_" + response.id);
|
||||
var note_text = note_li.find(".note-text");
|
||||
note_text.html(response.note).show();
|
||||
|
||||
var note_form = note_li.find(".note-edit-form");
|
||||
note_form.hide();
|
||||
note_form.find(".btn-save").enableButton();
|
||||
|
||||
// Update the "Edited at xxx label" on the note to show it's just been updated
|
||||
NoteList.rewriteTimestamp(note_li.find(".note-last-update"));
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Called in response to the 'cancel note' link clicked, or after deleting a note attachment
|
||||
*
|
||||
* Hides the edit note form and shows the note
|
||||
* Resets the edit note form textarea with the original content of the note
|
||||
*/
|
||||
resetNoteEditing: function(note) {
|
||||
note.find(".note-text").show();
|
||||
|
||||
// Hide the attachment delete link
|
||||
note.find(".js-note-attachment-delete").hide();
|
||||
|
||||
// Put the original content of the note back into the edit form textarea
|
||||
var form = note.find(".note-edit-form");
|
||||
var original_content = form.find(".note-original-content");
|
||||
form.find("textarea").val(original_content.text());
|
||||
original_content.remove();
|
||||
|
||||
note.find(".note-edit-form").hide();
|
||||
},
|
||||
|
||||
/**
|
||||
* Utility function to generate new timestamp text for a note
|
||||
*
|
||||
*/
|
||||
rewriteTimestamp: function(element) {
|
||||
// Strip all newlines from the existing timestamp
|
||||
var ts = element.text().replace(/\n/g, ' ').trim();
|
||||
|
||||
// If the timestamp already has '(Edited xxx ago)' text, remove it
|
||||
ts = ts.replace(new RegExp("\\(Edited [A-Za-z0-9 ]+\\)$", "gi"), "");
|
||||
|
||||
// Append "(Edited just now)"
|
||||
ts = (ts + " <small>(Edited just now)</small>");
|
||||
|
||||
element.html(ts);
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,473 @@
|
||||
class Notes
|
||||
@interval: null
|
||||
|
||||
constructor: (notes_url, note_ids, last_fetched_at) ->
|
||||
@notes_url = notes_url
|
||||
@notes_url = gon.relative_url_root + @notes_url if gon.relative_url_root?
|
||||
@note_ids = note_ids
|
||||
@last_fetched_at = last_fetched_at
|
||||
@initRefresh()
|
||||
@setupMainTargetNoteForm()
|
||||
@cleanBinding()
|
||||
@addBinding()
|
||||
|
||||
addBinding: ->
|
||||
# add note to UI after creation
|
||||
$(document).on "ajax:success", ".js-main-target-form", @addNote
|
||||
$(document).on "ajax:success", ".js-discussion-note-form", @addDiscussionNote
|
||||
|
||||
# change note in UI after update
|
||||
$(document).on "ajax:success", "form.edit_note", @updateNote
|
||||
|
||||
# Edit note link
|
||||
$(document).on "click", ".js-note-edit", @showEditForm
|
||||
$(document).on "click", ".note-edit-cancel", @cancelEdit
|
||||
|
||||
# remove a note (in general)
|
||||
$(document).on "click", ".js-note-delete", @removeNote
|
||||
|
||||
# delete note attachment
|
||||
$(document).on "click", ".js-note-attachment-delete", @removeAttachment
|
||||
|
||||
# Preview button
|
||||
$(document).on "click", ".js-note-preview-button", @previewNote
|
||||
|
||||
# reset main target form after submit
|
||||
$(document).on "ajax:complete", ".js-main-target-form", @resetMainTargetForm
|
||||
|
||||
# attachment button
|
||||
$(document).on "click", ".js-choose-note-attachment-button", @chooseNoteAttachment
|
||||
|
||||
# update the file name when an attachment is selected
|
||||
$(document).on "change", ".js-note-attachment-input", @updateFormAttachment
|
||||
|
||||
# reply to diff/discussion notes
|
||||
$(document).on "click", ".js-discussion-reply-button", @replyToDiscussionNote
|
||||
|
||||
# add diff note
|
||||
$(document).on "click", ".js-add-diff-note-button", @addDiffNote
|
||||
|
||||
# hide diff note form
|
||||
$(document).on "click", ".js-close-discussion-note-form", @cancelDiscussionForm
|
||||
|
||||
# fetch notes when tab becomes visible
|
||||
$(document).on "visibilitychange", @visibilityChange
|
||||
|
||||
@notes_forms = '.js-main-target-form textarea, .js-discussion-note-form textarea'
|
||||
$(document).on('keypress', @notes_forms, (e)->
|
||||
if e.keyCode == 10 || (e.ctrlKey && e.keyCode == 13)
|
||||
$(@).parents('form').submit()
|
||||
)
|
||||
|
||||
cleanBinding: ->
|
||||
$(document).off "ajax:success", ".js-main-target-form"
|
||||
$(document).off "ajax:success", ".js-discussion-note-form"
|
||||
$(document).off "ajax:success", "form.edit_note"
|
||||
$(document).off "click", ".js-note-edit"
|
||||
$(document).off "click", ".note-edit-cancel"
|
||||
$(document).off "click", ".js-note-delete"
|
||||
$(document).off "click", ".js-note-attachment-delete"
|
||||
$(document).off "click", ".js-note-preview-button"
|
||||
$(document).off "ajax:complete", ".js-main-target-form"
|
||||
$(document).off "click", ".js-choose-note-attachment-button"
|
||||
$(document).off "click", ".js-discussion-reply-button"
|
||||
$(document).off "click", ".js-add-diff-note-button"
|
||||
$(document).off "visibilitychange"
|
||||
$(document).off "keypress", @notes_forms
|
||||
|
||||
|
||||
initRefresh: ->
|
||||
clearInterval(Notes.interval)
|
||||
Notes.interval = setInterval =>
|
||||
@refresh()
|
||||
, 15000
|
||||
|
||||
refresh: ->
|
||||
@getContent() unless document.hidden
|
||||
|
||||
getContent: ->
|
||||
$.ajax
|
||||
url: @notes_url
|
||||
data: "last_fetched_at=" + @last_fetched_at
|
||||
dataType: "json"
|
||||
success: (data) =>
|
||||
notes = data.notes
|
||||
@last_fetched_at = data.last_fetched_at
|
||||
$.each notes, (i, note) =>
|
||||
@renderNote(note)
|
||||
|
||||
|
||||
###
|
||||
Render note in main comments area.
|
||||
|
||||
Note: for rendering inline notes use renderDiscussionNote
|
||||
###
|
||||
renderNote: (note) ->
|
||||
# render note if it not present in loaded list
|
||||
# or skip if rendered
|
||||
if @isNewNote(note)
|
||||
@note_ids.push(note.id)
|
||||
$('ul.main-notes-list').append(note.html)
|
||||
code = "#note_" + note.id + " .highlight pre code"
|
||||
$(code).each (i, e) ->
|
||||
hljs.highlightBlock(e)
|
||||
|
||||
|
||||
###
|
||||
Check if note does not exists on page
|
||||
###
|
||||
isNewNote: (note) ->
|
||||
$.inArray(note.id, @note_ids) == -1
|
||||
|
||||
|
||||
###
|
||||
Render note in discussion area.
|
||||
|
||||
Note: for rendering inline notes use renderDiscussionNote
|
||||
###
|
||||
renderDiscussionNote: (note) ->
|
||||
@note_ids.push(note.id)
|
||||
form = $("form[rel='" + note.discussion_id + "']")
|
||||
row = form.closest("tr")
|
||||
|
||||
# is this the first note of discussion?
|
||||
if row.is(".js-temp-notes-holder")
|
||||
# insert the note and the reply button after the temp row
|
||||
row.after note.discussion_html
|
||||
|
||||
# remove the note (will be added again below)
|
||||
row.next().find(".note").remove()
|
||||
|
||||
# append new note to all matching discussions
|
||||
$(".notes[rel='" + note.discussion_id + "']").append note.html
|
||||
|
||||
# cleanup after successfully creating a diff/discussion note
|
||||
@removeDiscussionNoteForm(form)
|
||||
|
||||
###
|
||||
Shows the note preview.
|
||||
|
||||
Lets the server render GFM into Html and displays it.
|
||||
|
||||
Note: uses the Toggler behavior to toggle preview/edit views/buttons
|
||||
###
|
||||
previewNote: (e) ->
|
||||
e.preventDefault()
|
||||
form = $(this).closest("form")
|
||||
preview = form.find(".js-note-preview")
|
||||
noteText = form.find(".js-note-text").val()
|
||||
if noteText.trim().length is 0
|
||||
preview.text "Nothing to preview."
|
||||
else
|
||||
preview.text "Loading..."
|
||||
$.post($(this).data("url"),
|
||||
note: noteText
|
||||
).success (previewData) ->
|
||||
preview.html previewData
|
||||
|
||||
###
|
||||
Called in response the main target form has been successfully submitted.
|
||||
|
||||
Removes any errors.
|
||||
Resets text and preview.
|
||||
Resets buttons.
|
||||
###
|
||||
resetMainTargetForm: ->
|
||||
form = $(".js-main-target-form")
|
||||
|
||||
# remove validation errors
|
||||
form.find(".js-errors").remove()
|
||||
|
||||
# reset text and preview
|
||||
previewContainer = form.find(".js-toggler-container.note_text_and_preview")
|
||||
previewContainer.removeClass "on" if previewContainer.is(".on")
|
||||
form.find(".js-note-text").val("").trigger "input"
|
||||
|
||||
###
|
||||
Called when clicking the "Choose File" button.
|
||||
|
||||
Opens the file selection dialog.
|
||||
###
|
||||
chooseNoteAttachment: ->
|
||||
form = $(this).closest("form")
|
||||
form.find(".js-note-attachment-input").click()
|
||||
|
||||
###
|
||||
Shows the main form and does some setup on it.
|
||||
|
||||
Sets some hidden fields in the form.
|
||||
###
|
||||
setupMainTargetNoteForm: ->
|
||||
|
||||
# find the form
|
||||
form = $(".js-new-note-form")
|
||||
|
||||
# insert the form after the button
|
||||
form.clone().replaceAll $(".js-main-target-form")
|
||||
form = form.prev("form")
|
||||
|
||||
# show the form
|
||||
@setupNoteForm(form)
|
||||
|
||||
# fix classes
|
||||
form.removeClass "js-new-note-form"
|
||||
form.addClass "js-main-target-form"
|
||||
|
||||
# remove unnecessary fields and buttons
|
||||
form.find("#note_line_code").remove()
|
||||
form.find(".js-close-discussion-note-form").remove()
|
||||
|
||||
###
|
||||
General note form setup.
|
||||
|
||||
deactivates the submit button when text is empty
|
||||
hides the preview button when text is empty
|
||||
setup GFM auto complete
|
||||
show the form
|
||||
###
|
||||
setupNoteForm: (form) ->
|
||||
disableButtonIfEmptyField form.find(".js-note-text"), form.find(".js-comment-button")
|
||||
form.removeClass "js-new-note-form"
|
||||
|
||||
# setup preview buttons
|
||||
form.find(".js-note-edit-button, .js-note-preview-button").tooltip placement: "left"
|
||||
previewButton = form.find(".js-note-preview-button")
|
||||
form.find(".js-note-text").on "input", ->
|
||||
if $(this).val().trim() isnt ""
|
||||
previewButton.removeClass("turn-off").addClass "turn-on"
|
||||
else
|
||||
previewButton.removeClass("turn-on").addClass "turn-off"
|
||||
|
||||
|
||||
# remove notify commit author checkbox for non-commit notes
|
||||
form.find(".js-notify-commit-author").remove() if form.find("#note_noteable_type").val() isnt "Commit"
|
||||
GitLab.GfmAutoComplete.setup()
|
||||
form.show()
|
||||
|
||||
|
||||
###
|
||||
Called in response to the new note form being submitted
|
||||
|
||||
Adds new note to list.
|
||||
###
|
||||
addNote: (xhr, note, status) =>
|
||||
@renderNote(note)
|
||||
@updateVotes()
|
||||
|
||||
###
|
||||
Called in response to the new note form being submitted
|
||||
|
||||
Adds new note to list.
|
||||
###
|
||||
addDiscussionNote: (xhr, note, status) =>
|
||||
@renderDiscussionNote(note)
|
||||
|
||||
###
|
||||
Called in response to the edit note form being submitted
|
||||
|
||||
Updates the current note field.
|
||||
###
|
||||
updateNote: (xhr, note, status) =>
|
||||
note_li = $("#note_" + note.id)
|
||||
note_li.replaceWith(note.html)
|
||||
code = "#note_" + note.id + " .highlight pre code"
|
||||
$(code).each (i, e) ->
|
||||
hljs.highlightBlock(e)
|
||||
|
||||
###
|
||||
Called in response to clicking the edit note link
|
||||
|
||||
Replaces the note text with the note edit form
|
||||
Adds a hidden div with the original content of the note to fill the edit note form with
|
||||
if the user cancels
|
||||
###
|
||||
showEditForm: (e) ->
|
||||
e.preventDefault()
|
||||
note = $(this).closest(".note")
|
||||
note.find(".note-text").hide()
|
||||
|
||||
# Show the attachment delete link
|
||||
note.find(".js-note-attachment-delete").show()
|
||||
GitLab.GfmAutoComplete.setup()
|
||||
form = note.find(".note-edit-form")
|
||||
form.show()
|
||||
form.find("textarea").focus()
|
||||
|
||||
###
|
||||
Called in response to clicking the edit note link
|
||||
|
||||
Hides edit form
|
||||
###
|
||||
cancelEdit: (e) ->
|
||||
e.preventDefault()
|
||||
note = $(this).closest(".note")
|
||||
note.find(".note-text").show()
|
||||
note.find(".js-note-attachment-delete").hide()
|
||||
note.find(".note-edit-form").hide()
|
||||
|
||||
###
|
||||
Called in response to deleting a note of any kind.
|
||||
|
||||
Removes the actual note from view.
|
||||
Removes the whole discussion if the last note is being removed.
|
||||
###
|
||||
removeNote: ->
|
||||
note = $(this).closest(".note")
|
||||
notes = note.closest(".notes")
|
||||
|
||||
# check if this is the last note for this line
|
||||
if notes.find(".note").length is 1
|
||||
|
||||
# for discussions
|
||||
notes.closest(".discussion").remove()
|
||||
|
||||
# for diff lines
|
||||
notes.closest("tr").remove()
|
||||
|
||||
note.remove()
|
||||
|
||||
###
|
||||
Called in response to clicking the delete attachment link
|
||||
|
||||
Removes the attachment wrapper view, including image tag if it exists
|
||||
Resets the note editing form
|
||||
###
|
||||
removeAttachment: ->
|
||||
note = $(this).closest(".note")
|
||||
note.find(".note-attachment").remove()
|
||||
note.find(".note-text").show()
|
||||
note.find(".js-note-attachment-delete").hide()
|
||||
note.find(".note-edit-form").hide()
|
||||
|
||||
###
|
||||
Called when clicking on the "reply" button for a diff line.
|
||||
|
||||
Shows the note form below the notes.
|
||||
###
|
||||
replyToDiscussionNote: (e) =>
|
||||
form = $(".js-new-note-form")
|
||||
replyLink = $(e.target)
|
||||
replyLink.hide()
|
||||
|
||||
# insert the form after the button
|
||||
form.clone().insertAfter replyLink
|
||||
|
||||
# show the form
|
||||
@setupDiscussionNoteForm(replyLink, replyLink.next("form"))
|
||||
|
||||
###
|
||||
Shows the diff or discussion form and does some setup on it.
|
||||
|
||||
Sets some hidden fields in the form.
|
||||
|
||||
Note: dataHolder must have the "discussionId", "lineCode", "noteableType"
|
||||
and "noteableId" data attributes set.
|
||||
###
|
||||
setupDiscussionNoteForm: (dataHolder, form) =>
|
||||
# setup note target
|
||||
form.attr "rel", dataHolder.data("discussionId")
|
||||
form.find("#note_commit_id").val dataHolder.data("commitId")
|
||||
form.find("#note_line_code").val dataHolder.data("lineCode")
|
||||
form.find("#note_noteable_type").val dataHolder.data("noteableType")
|
||||
form.find("#note_noteable_id").val dataHolder.data("noteableId")
|
||||
@setupNoteForm form
|
||||
form.find(".js-note-text").focus()
|
||||
form.addClass "js-discussion-note-form"
|
||||
|
||||
###
|
||||
General note form setup.
|
||||
|
||||
deactivates the submit button when text is empty
|
||||
hides the preview button when text is empty
|
||||
setup GFM auto complete
|
||||
show the form
|
||||
###
|
||||
setupNoteForm: (form) =>
|
||||
disableButtonIfEmptyField form.find(".js-note-text"), form.find(".js-comment-button")
|
||||
form.removeClass "js-new-note-form"
|
||||
form.removeClass "js-new-note-form"
|
||||
GitLab.GfmAutoComplete.setup()
|
||||
|
||||
# setup preview buttons
|
||||
previewButton = form.find(".js-note-preview-button")
|
||||
form.find(".js-note-text").on "input", ->
|
||||
if $(this).val().trim() isnt ""
|
||||
previewButton.removeClass("turn-off").addClass "turn-on"
|
||||
else
|
||||
previewButton.removeClass("turn-on").addClass "turn-off"
|
||||
|
||||
form.show()
|
||||
|
||||
###
|
||||
Called when clicking on the "add a comment" button on the side of a diff line.
|
||||
|
||||
Inserts a temporary row for the form below the line.
|
||||
Sets up the form and shows it.
|
||||
###
|
||||
addDiffNote: (e) =>
|
||||
e.preventDefault()
|
||||
link = e.target
|
||||
form = $(".js-new-note-form")
|
||||
row = $(link).closest("tr")
|
||||
nextRow = row.next()
|
||||
|
||||
# does it already have notes?
|
||||
if nextRow.is(".notes_holder")
|
||||
replyButton = nextRow.find(".js-discussion-reply-button")
|
||||
if replyButton.length > 0
|
||||
$.proxy(@replyToDiscussionNote, replyButton).call()
|
||||
else
|
||||
# add a notes row and insert the form
|
||||
row.after "<tr class=\"notes_holder js-temp-notes-holder\"><td class=\"notes_line\" colspan=\"2\"></td><td class=\"notes_content\"></td></tr>"
|
||||
form.clone().appendTo row.next().find(".notes_content")
|
||||
|
||||
# show the form
|
||||
@setupDiscussionNoteForm $(link), row.next().find("form")
|
||||
|
||||
###
|
||||
Called in response to "cancel" on a diff note form.
|
||||
|
||||
Shows the reply button again.
|
||||
Removes the form and if necessary it's temporary row.
|
||||
###
|
||||
removeDiscussionNoteForm: (form)->
|
||||
row = form.closest("tr")
|
||||
|
||||
# show the reply button (will only work for replies)
|
||||
form.prev(".js-discussion-reply-button").show()
|
||||
if row.is(".js-temp-notes-holder")
|
||||
# remove temporary row for diff lines
|
||||
row.remove()
|
||||
else
|
||||
# only remove the form
|
||||
form.remove()
|
||||
|
||||
|
||||
cancelDiscussionForm: (e) =>
|
||||
e.preventDefault()
|
||||
form = $(".js-new-note-form")
|
||||
form = $(e.target).closest(".js-discussion-note-form")
|
||||
@removeDiscussionNoteForm(form)
|
||||
|
||||
updateVotes: ->
|
||||
(new NotesVotes).updateVotes()
|
||||
|
||||
###
|
||||
Called after an attachment file has been selected.
|
||||
|
||||
Updates the file name for the selected attachment.
|
||||
###
|
||||
updateFormAttachment: ->
|
||||
form = $(this).closest("form")
|
||||
|
||||
# get only the basename
|
||||
filename = $(this).val().replace(/^.*[\\\/]/, "")
|
||||
form.find(".js-attachment-filename").text filename
|
||||
|
||||
###
|
||||
Called when the tab visibility changes
|
||||
###
|
||||
visibilityChange: =>
|
||||
@refresh()
|
||||
|
||||
@Notes = Notes
|
||||
@@ -0,0 +1,22 @@
|
||||
class NotesVotes
|
||||
updateVotes: ->
|
||||
votes = $("#votes .votes")
|
||||
notes = $("#notes-list .note .vote")
|
||||
|
||||
# only update if there is a vote display
|
||||
if votes.size()
|
||||
upvotes = notes.filter(".upvote").size()
|
||||
downvotes = notes.filter(".downvote").size()
|
||||
votesCount = upvotes + downvotes
|
||||
upvotesPercent = (if votesCount then (100.0 / votesCount * upvotes) else 0)
|
||||
downvotesPercent = (if votesCount then (100.0 - upvotesPercent) else 0)
|
||||
|
||||
# change vote bar lengths
|
||||
votes.find(".bar-success").css "width", upvotesPercent + "%"
|
||||
votes.find(".bar-danger").css "width", downvotesPercent + "%"
|
||||
|
||||
# replace vote numbers
|
||||
votes.find(".upvotes").text votes.find(".upvotes").text().replace(/\d+/, upvotes)
|
||||
votes.find(".downvotes").text votes.find(".downvotes").text().replace(/\d+/, downvotes)
|
||||
|
||||
@NotesVotes = NotesVotes
|
||||
@@ -19,8 +19,9 @@
|
||||
data: "limit=" + @limit + "&offset=" + @offset
|
||||
complete: ->
|
||||
$(".loading").hide()
|
||||
|
||||
dataType: "script"
|
||||
success: (data) ->
|
||||
Pager.append(data.count, data.html)
|
||||
dataType: "json"
|
||||
|
||||
append: (count, html) ->
|
||||
$(".content_list").append html
|
||||
|
||||
@@ -26,3 +26,5 @@ $ ->
|
||||
form = $(this).closest("form")
|
||||
filename = $(this).val().replace(/^.*[\\\/]/, '')
|
||||
form.find(".js-avatar-filename").text(filename)
|
||||
|
||||
$('.profile-groups-avatars').tooltip("placement": "top")
|
||||
@@ -35,8 +35,14 @@ $ ->
|
||||
$('a, button', scope).removeClass 'active'
|
||||
$(@).addClass 'active'
|
||||
$('#project_clone', scope).val $(@).data 'clone'
|
||||
$(".clone").text("").append 'git remote add origin ' + $(@).data 'clone'
|
||||
$(".clone").text("").append $(@).data 'clone'
|
||||
|
||||
# Ref switcher
|
||||
$('.project-refs-select').on 'change', ->
|
||||
$(@).parents('form').submit()
|
||||
|
||||
$('.hide-no-ssh-message').on 'click', (e) ->
|
||||
path = '/'
|
||||
$.cookie('hide_no_ssh_message', 'false', { path: path })
|
||||
$(@).parents('.no-ssh-key-message').hide()
|
||||
e.preventDefault()
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
@projectUsersSelect =
|
||||
init: ->
|
||||
$('.ajax-project-users-select').each (i, select) ->
|
||||
project_id = $(select).data('project-id') || $('body').data('project-id')
|
||||
|
||||
$(select).select2
|
||||
placeholder: $(select).data('placeholder') || "Search for a user"
|
||||
multiple: $(select).hasClass('multiselect')
|
||||
minimumInputLength: 0
|
||||
query: (query) ->
|
||||
Api.projectUsers project_id, query.term, (users) ->
|
||||
data = { results: users }
|
||||
|
||||
nullUser = {
|
||||
name: 'Unassigned',
|
||||
avatar: null,
|
||||
username: 'none',
|
||||
id: ''
|
||||
}
|
||||
|
||||
data.results.unshift(nullUser)
|
||||
|
||||
query.callback(data)
|
||||
|
||||
initSelection: (element, callback) ->
|
||||
id = $(element).val()
|
||||
if id isnt ""
|
||||
Api.user(id, callback)
|
||||
|
||||
|
||||
formatResult: projectUsersSelect.projectUserFormatResult
|
||||
formatSelection: projectUsersSelect.projectUserFormatSelection
|
||||
dropdownCssClass: "ajax-project-users-dropdown"
|
||||
dropdownAutoWidth: true
|
||||
escapeMarkup: (m) -> # we do not want to escape markup since we are displaying html in results
|
||||
m
|
||||
|
||||
projectUserFormatResult: (user) ->
|
||||
if user.avatar_url
|
||||
avatar = user.avatar_url
|
||||
else if gon.gravatar_enabled
|
||||
avatar = gon.gravatar_url
|
||||
avatar = avatar.replace('%{hash}', md5(user.email))
|
||||
avatar = avatar.replace('%{size}', '24')
|
||||
else
|
||||
avatar = gon.relative_url_root + "/assets/no_avatar.png"
|
||||
|
||||
if user.id == ''
|
||||
avatarMarkup = ''
|
||||
else
|
||||
avatarMarkup = "<div class='user-image'><img class='avatar s24' src='#{avatar}'></div>"
|
||||
|
||||
"<div class='user-result'>
|
||||
#{avatarMarkup}
|
||||
<div class='user-name'>#{user.name}</div>
|
||||
<div class='user-username'>#{user.username}</div>
|
||||
</div>"
|
||||
|
||||
projectUserFormatSelection: (user) ->
|
||||
user.name
|
||||
|
||||
$ ->
|
||||
projectUsersSelect.init()
|
||||
@@ -1,7 +1,12 @@
|
||||
class SearchAutocomplete
|
||||
constructor: (json) ->
|
||||
constructor: (search_autocomplete_path, project_id, project_ref) ->
|
||||
project_id = '' unless project_id
|
||||
project_ref = '' unless project_ref
|
||||
query = "?project_id=" + project_id + "&project_ref=" + project_ref
|
||||
|
||||
$("#search").autocomplete
|
||||
source: json
|
||||
source: search_autocomplete_path + query
|
||||
minLength: 1
|
||||
select: (event, ui) ->
|
||||
location.href = ui.item.url
|
||||
|
||||
|
||||
@@ -46,11 +46,7 @@ class window.ContributorsGraph
|
||||
|
||||
class window.ContributorsMasterGraph extends ContributorsGraph
|
||||
constructor: (@data) ->
|
||||
if $(window).width() > 1214
|
||||
@width = 1100
|
||||
else
|
||||
@width = 870
|
||||
|
||||
@width = $('.container').width() - 70
|
||||
@height = 200
|
||||
@x = null
|
||||
@y = null
|
||||
@@ -88,7 +84,6 @@ class window.ContributorsMasterGraph extends ContributorsGraph
|
||||
x(d.date)
|
||||
).y0(@height).y1((d) ->
|
||||
xa = d.commits = d.commits ? d.additions ? d.deletions
|
||||
console.log(xa)
|
||||
y(xa)
|
||||
).interpolate("basis")
|
||||
create_brush: ->
|
||||
@@ -124,11 +119,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph
|
||||
|
||||
class window.ContributorsAuthorGraph extends ContributorsGraph
|
||||
constructor: (@data) ->
|
||||
if $(window).width() > 1214
|
||||
@width = 490
|
||||
else
|
||||
@width = 380
|
||||
|
||||
@width = $('.container').width()/2 - 100
|
||||
@height = 200
|
||||
@x = null
|
||||
@y = null
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
$ ->
|
||||
userFormatResult = (user) ->
|
||||
if user.avatar
|
||||
avatar = user.avatar.url
|
||||
else
|
||||
if user.avatar_url
|
||||
avatar = user.avatar_url
|
||||
else if gon.gravatar_enabled
|
||||
avatar = gon.gravatar_url
|
||||
avatar = avatar.replace('%{hash}', md5(user.email))
|
||||
avatar = avatar.replace('%{size}', '24')
|
||||
markup = "<div class='user-result'>"
|
||||
markup += "<div class='user-image'><img class='avatar s24' src='" + avatar + "'></div>"
|
||||
markup += "<div class='user-name'>" + user.name + "</div>"
|
||||
markup += "<div class='user-username'>" + user.username + "</div>"
|
||||
markup += "</div>"
|
||||
markup
|
||||
else
|
||||
avatar = gon.relative_url_root + "/assets/no_avatar.png"
|
||||
|
||||
"<div class='user-result'>
|
||||
<div class='user-image'><img class='avatar s24' src='#{avatar}'></div>
|
||||
<div class='user-name'>#{user.name}</div>
|
||||
<div class='user-username'>#{user.username}</div>
|
||||
</div>"
|
||||
|
||||
userFormatSelection = (user) ->
|
||||
user.name
|
||||
|
||||
@@ -2,59 +2,50 @@
|
||||
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
||||
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
||||
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
||||
*= require jquery.ui.gitlab
|
||||
*= require jquery.ui.datepicker
|
||||
*= require jquery.ui.autocomplete
|
||||
*= require jquery.atwho
|
||||
*= require chosen
|
||||
*= require select2
|
||||
*= require highlightjs.min
|
||||
*= require_self
|
||||
*= require nprogress
|
||||
*= require nprogress-bootstrap
|
||||
*/
|
||||
|
||||
@import "main/*";
|
||||
|
||||
/**
|
||||
* GitLab bootstrap:
|
||||
* Customized Twitter bootstrap
|
||||
*/
|
||||
@import "gitlab_bootstrap.scss";
|
||||
@import 'gl_bootstrap';
|
||||
|
||||
@import "common.scss";
|
||||
@import "selects.scss";
|
||||
/**
|
||||
* Font icons
|
||||
*
|
||||
*/
|
||||
@import "font-awesome";
|
||||
|
||||
@import "sections/header.scss";
|
||||
@import "sections/nav.scss";
|
||||
@import "sections/commits.scss";
|
||||
@import "sections/issues.scss";
|
||||
@import "sections/projects.scss";
|
||||
@import "sections/snippets.scss";
|
||||
@import "sections/votes.scss";
|
||||
@import "sections/merge_requests.scss";
|
||||
@import "sections/graph.scss";
|
||||
@import "sections/events.scss";
|
||||
@import "sections/themes.scss";
|
||||
@import "sections/tree.scss";
|
||||
@import "sections/notes.scss";
|
||||
@import "sections/profile.scss";
|
||||
@import "sections/login.scss";
|
||||
@import "sections/editor.scss";
|
||||
@import "sections/admin.scss";
|
||||
@import "sections/wiki.scss";
|
||||
@import "sections/wall.scss";
|
||||
@import "sections/dashboard.scss";
|
||||
@import "sections/stat_graph.scss";
|
||||
/**
|
||||
* Generic css (forms, nav etc):
|
||||
*/
|
||||
@import "generic/*";
|
||||
|
||||
@import "highlight/white.scss";
|
||||
@import "highlight/dark.scss";
|
||||
@import "highlight/solarized_dark.scss";
|
||||
@import "highlight/monokai.scss";
|
||||
/**
|
||||
* Page specific styles (issues, projects etc):
|
||||
*/
|
||||
@import "sections/*";
|
||||
|
||||
/**
|
||||
* Code highlight
|
||||
*/
|
||||
@import "highlight/*";
|
||||
|
||||
/**
|
||||
* UI themes:
|
||||
*/
|
||||
@import "themes/ui_basic.scss";
|
||||
@import "themes/ui_mars.scss";
|
||||
@import "themes/ui_modern.scss";
|
||||
@import "themes/ui_gray.scss";
|
||||
@import "themes/ui_color.scss";
|
||||
@import "themes/*";
|
||||
|
||||
/**
|
||||
* Styles for JS behaviors.
|
||||
*/
|
||||
@import "behaviors.scss";
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
.light-well {
|
||||
background: #f9f9f9;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.centered-light-block {
|
||||
text-align: center;
|
||||
color: #888;
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.nothing-here-block {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: #666;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 36px;
|
||||
}
|
||||
@@ -0,0 +1,191 @@
|
||||
.btn {
|
||||
display: inline-block;
|
||||
margin-bottom: 0;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
background-image: none;
|
||||
border: 1px solid transparent;
|
||||
white-space: nowrap;
|
||||
padding: 6px 12px;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
border-radius: 4px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
color: #444444;
|
||||
background-color: #fff;
|
||||
border-color: #ccc;
|
||||
text-shadow: none;
|
||||
|
||||
&.hover,
|
||||
&:hover {
|
||||
color: #444444;
|
||||
text-decoration: none;
|
||||
background-color: #ebebeb;
|
||||
border-color: #adadad;
|
||||
}
|
||||
|
||||
&.focus,
|
||||
&:focus {
|
||||
color: #444444;
|
||||
text-decoration: none;
|
||||
outline: thin dotted #333;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
&.active,
|
||||
&:active {
|
||||
outline: 0;
|
||||
background-image: none;
|
||||
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
cursor: not-allowed;
|
||||
pointer-events: none;
|
||||
opacity: 0.65;
|
||||
filter: alpha(opacity=65);
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
&.btn-primary {
|
||||
color: #ffffff;
|
||||
background-color: #429bca;
|
||||
border-color: #358ebd;
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #ffffff;
|
||||
background-color: #3286b1;
|
||||
border-color: #286e8e;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-success {
|
||||
color: #ffffff;
|
||||
background-color: #5cb85c;
|
||||
border-color: #4cae4c;
|
||||
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #ffffff;
|
||||
background-color: #47a447;
|
||||
border-color: #398439;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-danger {
|
||||
color: #ffffff;
|
||||
background-color: #d9534f;
|
||||
border-color: #d43f3a;
|
||||
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #ffffff;
|
||||
background-color: #d2322d;
|
||||
border-color: #ac2925;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-new {
|
||||
@extend .btn-success;
|
||||
}
|
||||
|
||||
&.btn-create {
|
||||
@extend .wide;
|
||||
@extend .btn-success;
|
||||
}
|
||||
|
||||
&.btn-save {
|
||||
@extend .wide;
|
||||
@extend .btn-primary;
|
||||
}
|
||||
|
||||
&.btn-remove {
|
||||
@extend .btn-danger;
|
||||
}
|
||||
|
||||
&.btn-cancel {
|
||||
float: right;
|
||||
}
|
||||
|
||||
&.wide {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
&.btn-small {
|
||||
padding: 2px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&.btn-tiny {
|
||||
font-size: 11px;
|
||||
padding: 2px 6px;
|
||||
line-height: 16px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
&.btn-close {
|
||||
color: #B94A48;
|
||||
font-weight: bold;
|
||||
&:hover {
|
||||
color: #B94A48;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-reopen {
|
||||
color: #468847;
|
||||
font-weight: bold;
|
||||
&:hover {
|
||||
color: #468847;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-grouped {
|
||||
margin-right: 7px;
|
||||
float: left;
|
||||
&:last-child {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-block {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
margin-bottom: 15px;
|
||||
&.btn {
|
||||
padding: 6px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group {
|
||||
&.btn-grouped {
|
||||
margin-right: 7px;
|
||||
float: left;
|
||||
&:last-child {
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.btn-group-small > .btn { @extend .btn.btn-small; }
|
||||
.btn-group-tiny > .btn { @extend .btn.btn-tiny; }
|
||||
@@ -1,22 +1,85 @@
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
/** COLORS **/
|
||||
.cgray { color: gray }
|
||||
.clgray { color: #BBB }
|
||||
.cred { color: #D12F19 }
|
||||
.cgreen { color: #4a2 }
|
||||
.cblue { color: #29A }
|
||||
.cblack { color: #111 }
|
||||
.cdark { color: #444 }
|
||||
.camber { color: #ffc000 }
|
||||
.cwhite { color: #fff!important }
|
||||
.bgred { background: #F2DEDE!important }
|
||||
|
||||
/** COMMON CLASSES **/
|
||||
.prepend-top-10 { margin-top:10px }
|
||||
.prepend-top-20 { margin-top:20px }
|
||||
.prepend-left-10 { margin-left:10px }
|
||||
.prepend-left-20 { margin-left:20px }
|
||||
.append-right-10 { margin-right:10px }
|
||||
.append-right-20 { margin-right:20px }
|
||||
.append-bottom-10 { margin-bottom:10px }
|
||||
.append-bottom-15 { margin-bottom:15px }
|
||||
.append-bottom-20 { margin-bottom:20px }
|
||||
.inline { display: inline-block }
|
||||
|
||||
.underlined-link { text-decoration: underline; }
|
||||
.hint { font-style: italic; color: #999; }
|
||||
.light { color: #888 }
|
||||
|
||||
.slead {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
margin-bottom: 12px;
|
||||
font-weight: normal;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
/** LAYOUT **/
|
||||
|
||||
body {
|
||||
margin-bottom: 20px;
|
||||
.tab-content {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding-top: 0;
|
||||
z-index: 5;
|
||||
pre {
|
||||
&.clean {
|
||||
background: none;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&.well-pre {
|
||||
border: 1px solid #EEE;
|
||||
background: #f9f9f9;
|
||||
border-radius: 0;
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
|
||||
.container .content {
|
||||
margin: 0 0;
|
||||
.dropdown-menu > li > a {
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus {
|
||||
background: #29b;
|
||||
color: #FFF
|
||||
}
|
||||
|
||||
.breadcrumb > li + li:before {
|
||||
content: "/";
|
||||
padding: 0;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.str-truncated {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: top;
|
||||
white-space: nowrap;
|
||||
max-width: 82%;
|
||||
}
|
||||
|
||||
/** FLASH message **/
|
||||
.author_link {
|
||||
color: $link_color;
|
||||
}
|
||||
@@ -35,39 +98,10 @@ table a code {
|
||||
|
||||
.loading {
|
||||
margin: 20px auto;
|
||||
background: url(ajax_loader.gif) no-repeat center center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
&.loading-gray {
|
||||
background: url(ajax_loader_gray.gif) no-repeat center center;
|
||||
}
|
||||
}
|
||||
|
||||
/** FLASH message **/
|
||||
.flash-container {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
color: #555;
|
||||
font-size: 32px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
opacity: 0.8;
|
||||
z-index: 100;
|
||||
|
||||
.flash-notice {
|
||||
background: #49C;
|
||||
padding: 10px;
|
||||
text-shadow: 0 1px 1px #178;
|
||||
}
|
||||
|
||||
.flash-alert {
|
||||
background: #C67;
|
||||
text-shadow: 0 1px 1px #945;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
span.update-author {
|
||||
@@ -90,19 +124,6 @@ span.update-author {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
ul.breadcrumb {
|
||||
background: white;
|
||||
border: none;
|
||||
li {
|
||||
display: inline;
|
||||
text-shadow: 0 1px 0 white
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.line_holder {
|
||||
&:hover {
|
||||
td {
|
||||
@@ -117,18 +138,6 @@ p.time {
|
||||
margin: 30px 3px 3px 2px;
|
||||
}
|
||||
|
||||
.search-holder {
|
||||
label, input {
|
||||
height: 30px;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
label {
|
||||
line-height: 30px;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
text-shadow: none;
|
||||
}
|
||||
@@ -190,24 +199,8 @@ li.note {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.merge-request,
|
||||
.issue {
|
||||
&.today{
|
||||
background: #EFE;
|
||||
border-color: #CEC;
|
||||
}
|
||||
&.closed {
|
||||
background: #F5f5f5;
|
||||
border-color: #E5E5E5;
|
||||
}
|
||||
&.merged {
|
||||
background: #F5f5f5;
|
||||
border-color: #E5E5E5;
|
||||
}
|
||||
}
|
||||
|
||||
.git_error_tips {
|
||||
@extend .span6;
|
||||
@extend .col-md-6;
|
||||
text-align: left;
|
||||
margin-top: 40px;
|
||||
pre {
|
||||
@@ -220,7 +213,6 @@ li.note {
|
||||
.error-message {
|
||||
padding: 10px;
|
||||
background: #C67;
|
||||
padding-left: 20px;
|
||||
margin: 0;
|
||||
color: #FFF;
|
||||
|
||||
@@ -228,8 +220,25 @@ li.note {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
&.centered {
|
||||
}
|
||||
|
||||
.no-ssh-key-message {
|
||||
padding: 10px 0;
|
||||
background: #C67;
|
||||
margin: 0;
|
||||
color: #FFF;
|
||||
margin-top: -1px;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.links-xs {
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
padding: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -253,15 +262,6 @@ li.note {
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
&.clean {
|
||||
background: none;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.milestone {
|
||||
&.milestone-closed {
|
||||
background: #eee;
|
||||
@@ -298,10 +298,6 @@ img.emoji {
|
||||
width: 20px;
|
||||
}
|
||||
|
||||
.appear-data {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.chart {
|
||||
overflow: hidden;
|
||||
height: 220px;
|
||||
@@ -317,11 +313,6 @@ img.emoji {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.group-name {
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
table {
|
||||
td.permission-x {
|
||||
background: #D9EDF7 !important;
|
||||
@@ -338,7 +329,33 @@ table {
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.navbar-gitlab .navbar-inner .nav > li .btn-sign-in {
|
||||
@extend .btn-new;
|
||||
padding: 5px 15px;
|
||||
.broadcast-message {
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
background: #555;
|
||||
color: #BBB;
|
||||
}
|
||||
|
||||
.broadcast-message-preview {
|
||||
@extend .broadcast-message;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn-sign-in {
|
||||
margin-top: 7px;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
.side-filters {
|
||||
fieldset {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $screen-xs-max) {
|
||||
.container .content { margin-top: 20px; }
|
||||
}
|
||||
|
||||
.wiki .highlight, .note-body .highlight {
|
||||
margin-bottom: 9px;
|
||||
}
|
||||
@@ -11,29 +11,32 @@
|
||||
}
|
||||
|
||||
.file-title {
|
||||
border-bottom: 1px solid #bbb;
|
||||
@include bg-dark-gray-gradient;
|
||||
background: #EEE;
|
||||
border-bottom: 1px solid #CCC;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
color: $style_color;
|
||||
padding: 9px 10px;
|
||||
height: 18px;
|
||||
|
||||
.options {
|
||||
float: right;
|
||||
margin-top: -5px;
|
||||
}
|
||||
|
||||
.left-options {
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
.file_name {
|
||||
color: $style_color;
|
||||
font-weight: bold;
|
||||
padding-left: 3px;
|
||||
font-size: 14px;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
|
||||
small {
|
||||
color: #999;
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
padding-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,14 +49,14 @@
|
||||
text-align: center;
|
||||
img {
|
||||
padding: 100px;
|
||||
max-width: 300px;
|
||||
max-width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
&.wiki {
|
||||
padding: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
padding: 25px;
|
||||
|
||||
.highlight {
|
||||
margin-bottom: 9px;
|
||||
@@ -144,75 +147,6 @@
|
||||
*/
|
||||
&.code {
|
||||
padding: 0;
|
||||
|
||||
table.lines {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
table-layout: fixed;
|
||||
|
||||
pre {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: $monospace_font;
|
||||
font-size: 12px !important;
|
||||
line-height: 16px !important;
|
||||
margin: 0;
|
||||
padding: 10px 0;
|
||||
}
|
||||
td {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
vertical-align: top;
|
||||
|
||||
&:first-child {
|
||||
background: #eee;
|
||||
width: 50px;
|
||||
}
|
||||
&:last-child {
|
||||
}
|
||||
}
|
||||
tr:hover {
|
||||
background: none;
|
||||
}
|
||||
|
||||
pre.line_numbers {
|
||||
color: #666;
|
||||
padding: 10px 6px 10px 0;
|
||||
text-align: right;
|
||||
background: #EEE;
|
||||
|
||||
a {
|
||||
color: #666;
|
||||
|
||||
i {
|
||||
display: none;
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
}
|
||||
&:hover i {
|
||||
display: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
border-left: 1px solid #DEE2E3;
|
||||
overflow: auto;
|
||||
overflow-y: hidden;
|
||||
|
||||
pre {
|
||||
white-space: pre;
|
||||
word-wrap: normal;
|
||||
|
||||
.line {
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
.flash-container {
|
||||
display: none;
|
||||
cursor: pointer;
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
opacity: 0.8;
|
||||
z-index: 100;
|
||||
|
||||
.flash-notice {
|
||||
background: #49C;
|
||||
padding: 10px;
|
||||
text-shadow: 0 1px 1px #178;
|
||||
}
|
||||
|
||||
.flash-alert {
|
||||
background: #C67;
|
||||
text-shadow: 0 1px 1px #945;
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
input[type='search'].search-text-input {
|
||||
background-image: image-url("icon-search.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 10px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
input[type='text'].danger {
|
||||
background: #F2DEDE!important;
|
||||
border-color: #D66;
|
||||
text-shadow: 0 1px 1px #fff
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.datetime-controls {
|
||||
select {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
padding: 17px 20px 18px;
|
||||
margin-top: 18px;
|
||||
margin-bottom: 18px;
|
||||
background-color: whitesmoke;
|
||||
border-top: 1px solid #e5e5e5;
|
||||
padding-left: 17%;
|
||||
}
|
||||
|
||||
label {
|
||||
&.control-label {
|
||||
@extend .col-sm-2;
|
||||
}
|
||||
|
||||
&.inline-label {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.inline-input-group {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.input-mx-250 {
|
||||
max-width: 250px;
|
||||
}
|
||||
|
||||
.input-mn-300 {
|
||||
min-width: 300px;
|
||||
}
|
||||
|
||||
.custom-form-control {
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
@media (min-width: $screen-sm-min) {
|
||||
.custom-form-control {
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Medium devices (desktops, 992px and up) */
|
||||
@media (min-width: $screen-md-min) {
|
||||
.custom-form-control {
|
||||
width: 170px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large devices (large desktops, 1200px and up) */
|
||||
@media (min-width: $screen-lg-min) {
|
||||
.custom-form-control {
|
||||
width: 200px;
|
||||
}
|
||||
}
|
||||
|
||||
.commit-message-container {
|
||||
background-color: $body-bg;
|
||||
position: relative;
|
||||
font-family: $monospace_font;
|
||||
$left: 12px;
|
||||
.max-width-marker {
|
||||
color: rgba(0, 0, 0, 0.0);
|
||||
font-family: inherit;
|
||||
left: $left;
|
||||
height: 100%;
|
||||
border-right: 1px solid mix($input-border, white);
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
}
|
||||
> textarea {
|
||||
background-color: rgba(0, 0, 0, 0.0);
|
||||
font-family: inherit;
|
||||
padding-left: $left;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
.highlighted-data {
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
table-layout: fixed;
|
||||
|
||||
pre {
|
||||
padding: 10px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: $monospace_font;
|
||||
font-size: 12px !important;
|
||||
line-height: 16px !important;
|
||||
margin: 0;
|
||||
|
||||
code {
|
||||
white-space: pre;
|
||||
word-wrap: normal;
|
||||
padding: 0;
|
||||
|
||||
.line {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hljs {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.line-numbers {
|
||||
padding: 10px;
|
||||
text-align: right;
|
||||
float: left;
|
||||
|
||||
a {
|
||||
font-family: $monospace_font;
|
||||
display: block;
|
||||
font-size: 12px !important;
|
||||
line-height: 16px !important;
|
||||
white-space: nowrap;
|
||||
|
||||
i {
|
||||
visibility: hidden;
|
||||
@extend .pull-left;
|
||||
}
|
||||
|
||||
&:hover i {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
overflow: auto;
|
||||
overflow-y: hidden;
|
||||
|
||||
pre {
|
||||
white-space: pre;
|
||||
word-wrap: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
/**
|
||||
* Issue box:
|
||||
* Huge block (one per page) for storing title, descripion and other information.
|
||||
* Used for Issue#show page, MergeRequest#show page etc
|
||||
*
|
||||
* CLasses:
|
||||
* .issue-box - Regular box
|
||||
*/
|
||||
|
||||
.issue-box {
|
||||
color: #666;
|
||||
margin:20px 0;
|
||||
background: #FFF;
|
||||
border: 1px solid #EEE;
|
||||
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
|
||||
|
||||
&.issue-box-closed {
|
||||
border-color: #DA4E49;
|
||||
.state {
|
||||
background-color: #f2dede;
|
||||
border-color: #ebccd1;
|
||||
color: #a94442;
|
||||
.state-label {
|
||||
background: #DA4E49;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.issue-box-merged {
|
||||
border-color: #31708f;
|
||||
.state {
|
||||
background-color: #d9edf7;
|
||||
border-color: #bce8f1;
|
||||
color: #31708f;
|
||||
.state-label {
|
||||
background: #31708f;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.issue-box-open {
|
||||
border-color: #4A4;
|
||||
.state {
|
||||
background-color: #dff0d8;
|
||||
border-color: #d6e9c6;
|
||||
color: #3c763d;
|
||||
.state-label {
|
||||
background: #4A4;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.issue-box-expired {
|
||||
border-color: #cea61b;
|
||||
.state {
|
||||
background-color: #fcf8e3;
|
||||
border-color: #faebcc;
|
||||
color: #8a6d3b;
|
||||
.state-label {
|
||||
background: #cea61b;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.control-group {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.state {
|
||||
border-bottom: 1px solid #DDD;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 22px;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
margin: 0;
|
||||
color: #333;
|
||||
padding-bottom: 0;
|
||||
padding: 15px 25px;
|
||||
}
|
||||
|
||||
.context {
|
||||
border: none;
|
||||
border-top: 1px solid #eee;
|
||||
padding: 15px 25px;
|
||||
|
||||
// Reset text align for children
|
||||
.text-right > * { text-align: left; }
|
||||
|
||||
@media (max-width: $screen-xs-max) {
|
||||
// Don't right align on mobile
|
||||
.text-right { text-align: left; }
|
||||
|
||||
.row .col-md-6 {
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
padding: 0 25px 15px 25px;
|
||||
}
|
||||
|
||||
.title, .context, .description {
|
||||
.clearfix {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.state-label {
|
||||
font-size: 14px;
|
||||
padding: 1px 25px;
|
||||
text-align: center;
|
||||
text-shadow: none;
|
||||
display: inline-block;
|
||||
line-height: 34px;
|
||||
}
|
||||
|
||||
.creator {
|
||||
padding: 2px 15px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
.ui-widget {
|
||||
font-family: $regular_font;
|
||||
font-size: $font-size-base;
|
||||
|
||||
&.ui-datepicker-inline {
|
||||
border: 1px solid #DDD;
|
||||
padding: 10px;
|
||||
width: 270px;
|
||||
|
||||
.ui-datepicker-header {
|
||||
background: #FFF;
|
||||
border-color: #DDD;
|
||||
}
|
||||
|
||||
.ui-datepicker-calendar td a {
|
||||
padding: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
&.ui-autocomplete {
|
||||
border-color: #DDD;
|
||||
padding: 0;
|
||||
margin-top: 2px;
|
||||
z-index: 1001;
|
||||
|
||||
.ui-menu-item a {
|
||||
padding: 4px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-state-default {
|
||||
border: 1px solid #FFF;
|
||||
background: #FFF;
|
||||
color: #777;
|
||||
}
|
||||
|
||||
.ui-state-highlight {
|
||||
border: 1px solid #EEE;
|
||||
background: #EEE;
|
||||
}
|
||||
|
||||
.ui-state-active {
|
||||
border: 1px solid $bg_style_color;
|
||||
background: $bg_style_color;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.ui-state-hover,
|
||||
.ui-state-focus {
|
||||
border: 1px solid $hover;
|
||||
background: $hover;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
@@ -4,13 +4,21 @@
|
||||
*/
|
||||
.well-list {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
li {
|
||||
padding: 10px;
|
||||
min-height: 20px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
||||
|
||||
&:after {
|
||||
content: " ";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
color: #888;
|
||||
}
|
||||
@@ -21,6 +29,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.warning-row {
|
||||
background-color: #fcf8e3;
|
||||
border-color: #faebcc;
|
||||
color: #8a6d3b;
|
||||
}
|
||||
|
||||
&.smoke { background-color: #f5f5f5; }
|
||||
|
||||
&:hover {
|
||||
@@ -38,6 +52,12 @@
|
||||
|
||||
.author { color: #999; }
|
||||
|
||||
.list-item-name {
|
||||
float: left;
|
||||
position: relative;
|
||||
top: 3px;
|
||||
}
|
||||
|
||||
p {
|
||||
padding-top: 1px;
|
||||
margin: 0;
|
||||
@@ -0,0 +1,123 @@
|
||||
/** Select2 selectbox style override **/
|
||||
.select2-container, .select2-container.select2-drop-above {
|
||||
.select2-choice {
|
||||
background: #FFF;
|
||||
border-color: #BBB;
|
||||
|
||||
.select2-arrow {
|
||||
background: #FFF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.select2-drop-active {
|
||||
border: 1px solid #BBB !important;
|
||||
margin-top: 4px;
|
||||
|
||||
&.select2-drop-above {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.select2-search input {
|
||||
background: #fafafa;
|
||||
border-color: #DDD;
|
||||
}
|
||||
|
||||
.select2-results {
|
||||
max-height: 350px;
|
||||
.select2-highlighted {
|
||||
background: $bg_style_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
&.select2 {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
&.select2-sm {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: $screen-sm-min) {
|
||||
select {
|
||||
&.select2 {
|
||||
width: 150px;
|
||||
}
|
||||
&.select2-sm {
|
||||
width: 120px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Medium devices (desktops, 992px and up) */
|
||||
@media (min-width: $screen-md-min) {
|
||||
select {
|
||||
&.select2 {
|
||||
width: 170px;
|
||||
}
|
||||
&.select2-sm {
|
||||
width: 140px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Large devices (large desktops, 1200px and up) */
|
||||
@media (min-width: $screen-lg-min) {
|
||||
select {
|
||||
&.select2 {
|
||||
width: 200px;
|
||||
}
|
||||
&.select2-sm {
|
||||
width: 150px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Branch/tag selector **/
|
||||
.project-refs-form .select2-container {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.ajax-users-dropdown, .ajax-project-users-dropdown {
|
||||
.select2-search {
|
||||
padding-top: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.ajax-users-select {
|
||||
width: 400px;
|
||||
|
||||
&.input-large {
|
||||
width: 210px;
|
||||
}
|
||||
|
||||
&.input-clamp {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.user-result {
|
||||
.user-image {
|
||||
float: left;
|
||||
}
|
||||
.user-name {
|
||||
}
|
||||
.user-username {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.namespace-result {
|
||||
.namespace-kind {
|
||||
color: #AAA;
|
||||
font-weight: normal;
|
||||
}
|
||||
.namespace-path {
|
||||
margin-left: 10px;
|
||||
font-weight: bolder;
|
||||
}
|
||||
}
|
||||
@@ -2,11 +2,6 @@
|
||||
* Headers
|
||||
*
|
||||
*/
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 500;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
h1.page-title {
|
||||
@include page-title;
|
||||
font-size: 28px;
|
||||
@@ -52,7 +47,7 @@ a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&.dark {
|
||||
&.darken {
|
||||
color: $style_color;
|
||||
}
|
||||
|
||||
@@ -93,12 +88,28 @@ a:focus {
|
||||
.wiki {
|
||||
@include md-typography;
|
||||
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
.white .highlight pre {
|
||||
background: #f5f5f5;
|
||||
/* Link to current header. */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
position: relative;
|
||||
&:hover > :last-child {
|
||||
$size: 16px;
|
||||
position: absolute;
|
||||
right: 100%;
|
||||
top: 50%;
|
||||
margin-top: -$size/2;
|
||||
margin-right: 0px;
|
||||
padding-right: 20px;
|
||||
display: inline-block;
|
||||
width: $size;
|
||||
height: $size;
|
||||
background-image: image-url("icon-link.png");
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0 0 9px 25px !important;
|
||||
}
|
||||
}
|
||||
@@ -106,3 +117,11 @@ a:focus {
|
||||
.md {
|
||||
@include md-typography;
|
||||
}
|
||||
|
||||
/**
|
||||
* Textareas intended for GFM
|
||||
*
|
||||
*/
|
||||
textarea.js-gfm-input {
|
||||
font-family: $monospace_font;
|
||||
}
|
||||
@@ -1,106 +1,55 @@
|
||||
/**
|
||||
* ===================================
|
||||
* Contain UI block elements:
|
||||
* UI box:
|
||||
* Block element for separating information on page.
|
||||
* Used for storing issues lists, grouped data.
|
||||
* You can have multiple ui boxes on one page
|
||||
*
|
||||
* Classes:
|
||||
* .ui-box - for any block & widgets
|
||||
* ===================================
|
||||
*/
|
||||
|
||||
/**
|
||||
* UI Block
|
||||
* .ui-box.ui-box-small - same but with smaller title
|
||||
* .ui-box.ui-box-danger - with red title
|
||||
*
|
||||
* Ex. 1: List
|
||||
* .ui-box
|
||||
* .title
|
||||
* # title here
|
||||
* %ul
|
||||
* # content here
|
||||
*
|
||||
* Ex. 2: Block data
|
||||
* .ui-box
|
||||
* .title
|
||||
* # title here
|
||||
* .body
|
||||
* # content here
|
||||
*
|
||||
*/
|
||||
|
||||
.ui-box {
|
||||
background: #FFF;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid #DDD;
|
||||
word-wrap: break-word;
|
||||
|
||||
&.small-box {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.title {
|
||||
font-size: 13px;
|
||||
line-height: 30px;
|
||||
|
||||
a {
|
||||
color: #666;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
&.ui-box-show {
|
||||
color: #666;
|
||||
margin:20px 0;
|
||||
background: #FFF;
|
||||
box-shadow: inset 0 1px 0 #fff, 0 1px 5px #f1f1f1;
|
||||
@include linear-gradient(#fafafa, #f1f1f1);
|
||||
|
||||
.control-group {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.ui-box-danger {
|
||||
.title {
|
||||
@include linear-gradient(#F26E5E, #bd362f);
|
||||
color: #fff;
|
||||
text-shadow: 0 1px 1px #900;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
img { max-width: 100%; }
|
||||
|
||||
pre {
|
||||
code {
|
||||
background: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-box-head,
|
||||
.ui-box-body,
|
||||
.ui-box-bottom {
|
||||
padding: 15px;
|
||||
|
||||
.clearfix {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-box-head {
|
||||
.box-title {
|
||||
font-size: 18px;
|
||||
font-weight: normal;
|
||||
line-height: 28px;
|
||||
margin: 0;
|
||||
}
|
||||
h3 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.ui-box-body {
|
||||
border: none;
|
||||
background-color: #f5f5f5;
|
||||
border: none;
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
.ui-box-bottom {
|
||||
border-top: 1px solid #eee;
|
||||
}
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
@include bg-gray-gradient;
|
||||
border-bottom: 1px solid #CCC;
|
||||
color: #456;
|
||||
background-color: #EEE;
|
||||
border-bottom: 1px solid #DDD;
|
||||
color: #666;
|
||||
font-size: 16px;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
padding: 0 10px;
|
||||
@@ -145,6 +94,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.body {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
&.padded {
|
||||
h5, .title {
|
||||
margin: -20px;
|
||||
@@ -154,7 +107,7 @@
|
||||
}
|
||||
|
||||
.row_title {
|
||||
font-weight: bold;
|
||||
font-weight: 500;
|
||||
color: #444;
|
||||
&:hover {
|
||||
color: #444;
|
||||
@@ -176,13 +129,45 @@
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Small box
|
||||
*/
|
||||
.ui-box.ui-box-small {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.title {
|
||||
font-size: 13px;
|
||||
line-height: 30px;
|
||||
|
||||
a {
|
||||
color: #666;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Danger box
|
||||
*/
|
||||
.ui-box.ui-box-danger {
|
||||
background: #f7f7f7;
|
||||
border: none;
|
||||
|
||||
.title {
|
||||
background: #D65;
|
||||
color: #fff;
|
||||
text-shadow: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Block under tw-bootstrap tabs
|
||||
*/
|
||||
.tab-pane {
|
||||
.ui-box {
|
||||
margin: 3px 3px 25px 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.light-well {
|
||||
background: #f9f9f9;
|
||||
padding: 15px;
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
/** Override bootstrap variables **/
|
||||
$baseFontSize: 13px !default;
|
||||
$baseLineHeight: 18px !default;
|
||||
|
||||
/**
|
||||
* BOOTSTRAP
|
||||
*/
|
||||
@import "bootstrap/variables";
|
||||
@import "bootstrap/mixins";
|
||||
@import "bootstrap/reset";
|
||||
@import "bootstrap/scaffolding";
|
||||
@import "bootstrap/grid";
|
||||
@import "bootstrap/layouts";
|
||||
@import "bootstrap/type";
|
||||
@import "bootstrap/code";
|
||||
@import "bootstrap/forms";
|
||||
@import "bootstrap/tables";
|
||||
@import "bootstrap/sprites";
|
||||
@import "bootstrap/dropdowns";
|
||||
@import "bootstrap/wells";
|
||||
@import "bootstrap/component-animations";
|
||||
@import "bootstrap/close";
|
||||
@import "bootstrap/button-groups";
|
||||
@import "bootstrap/alerts";
|
||||
@import "bootstrap/navs";
|
||||
@import "bootstrap/navbar";
|
||||
@import "bootstrap/breadcrumbs";
|
||||
@import "bootstrap/pagination";
|
||||
@import "bootstrap/pager";
|
||||
@import "bootstrap/modals";
|
||||
@import "bootstrap/tooltip";
|
||||
@import "bootstrap/popovers";
|
||||
@import "bootstrap/thumbnails";
|
||||
@import "bootstrap/media";
|
||||
@import "bootstrap/labels-badges";
|
||||
@import "bootstrap/progress-bars";
|
||||
@import "bootstrap/accordion";
|
||||
@import "bootstrap/carousel";
|
||||
@import "bootstrap/hero-unit";
|
||||
@import "bootstrap/utilities";
|
||||
@import "bootstrap/responsive-utilities";
|
||||
@import "bootstrap/responsive-1200px-min";
|
||||
|
||||
/**
|
||||
* Font icons
|
||||
*
|
||||
*/
|
||||
@import "font-awesome";
|
||||
|
||||
/**
|
||||
* GitLab bootstrap.
|
||||
* Overrides some styles of twitter bootstrap.
|
||||
* Also give some common classes for GitLab app
|
||||
*/
|
||||
@import "gitlab_bootstrap/variables.scss";
|
||||
@import "gitlab_bootstrap/fonts.scss";
|
||||
@import "gitlab_bootstrap/mixins.scss";
|
||||
@import "gitlab_bootstrap/avatar.scss";
|
||||
@import "gitlab_bootstrap/nav.scss";
|
||||
@import "gitlab_bootstrap/common.scss";
|
||||
@import "gitlab_bootstrap/typography.scss";
|
||||
@import "gitlab_bootstrap/buttons.scss";
|
||||
@import "gitlab_bootstrap/blocks.scss";
|
||||
@import "gitlab_bootstrap/files.scss";
|
||||
@import "gitlab_bootstrap/lists.scss";
|
||||
@import "gitlab_bootstrap/forms.scss";
|
||||
@@ -1,148 +0,0 @@
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 0;
|
||||
font-size: 13px;
|
||||
line-height: $baseLineHeight;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
border: 1px solid #BBB;
|
||||
color: $style_color;
|
||||
@include border-radius($baseBorderRadius);
|
||||
@include box-shadow(inset 0 1px 0 rgba(255,255,255,.2));
|
||||
@include linear-gradient(#f1f1f1, #e1e1e1);
|
||||
text-shadow: 0 1px 1px #FFF;
|
||||
text-decoration: none;
|
||||
|
||||
&.hover,
|
||||
&:hover {
|
||||
color: $style_color;
|
||||
background: #f1f1f1;
|
||||
border-color: #AAA;
|
||||
text-decoration: none;
|
||||
@include linear-gradient(#fAfAfA, #f1f1f1);
|
||||
}
|
||||
|
||||
&.focus,
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
@include box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
|
||||
}
|
||||
|
||||
&.active,
|
||||
&:active {
|
||||
background-image: none;
|
||||
outline: 0;
|
||||
text-decoration: none;
|
||||
@include box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
cursor: default;
|
||||
background-image: none;
|
||||
@include opacity(65);
|
||||
@include box-shadow(none);
|
||||
}
|
||||
|
||||
&.btn-primary {
|
||||
color: #FFF;
|
||||
border-color: #189;
|
||||
text-shadow: 0 1px 1px #189;
|
||||
@include linear-gradient(#4AC, #289);
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #FFF;
|
||||
background: #389;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-success {
|
||||
color: #FFF;
|
||||
border-color: #1A1;
|
||||
text-shadow: 0 1px 1px #FFF;
|
||||
text-shadow: 0 1px 1px #181;
|
||||
@include linear-gradient(#62C452, #51a351);
|
||||
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #FFF;
|
||||
background: #2A2;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-danger {
|
||||
color: #FFF;
|
||||
text-shadow: 0 1px 1px #811;
|
||||
border-color: #BD362F;
|
||||
@include linear-gradient(#EE5F5B, #BD362F);
|
||||
|
||||
|
||||
&.hover,
|
||||
&:hover,
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
color: #FFF;
|
||||
background: #A22;
|
||||
}
|
||||
}
|
||||
|
||||
&.btn-new {
|
||||
@extend .btn-success;
|
||||
}
|
||||
|
||||
&.btn-create {
|
||||
@extend .wide;
|
||||
@extend .btn-success;
|
||||
}
|
||||
|
||||
&.btn-save {
|
||||
@extend .wide;
|
||||
@extend .btn-primary;
|
||||
}
|
||||
|
||||
&.btn-close,
|
||||
&.btn-remove {
|
||||
@extend .btn-danger;
|
||||
}
|
||||
|
||||
&.btn-cancel {
|
||||
float: right;
|
||||
}
|
||||
|
||||
&.wide {
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
&.btn-small {
|
||||
padding: 2px 10px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
&.btn-tiny {
|
||||
font-size: 11px;
|
||||
padding: 2px 6px;
|
||||
line-height: 16px;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
&.grouped {
|
||||
margin-right: 7px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
&.btn-block {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 6px 0;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
@@ -1,118 +0,0 @@
|
||||
/** COLORS **/
|
||||
.cgray { color: gray }
|
||||
.cred { color: #D12F19 }
|
||||
.cgreen { color: #4a2 }
|
||||
.cblue { color: #29A }
|
||||
.cblack { color: #111 }
|
||||
.cdark { color: #444 }
|
||||
.cwhite { color: #fff!important }
|
||||
.bgred { background: #F2DEDE!important }
|
||||
|
||||
/** COMMON CLASSES **/
|
||||
.left { float:left }
|
||||
|
||||
.prepend-top-10 { margin-top:10px }
|
||||
.prepend-top-20 { margin-top:20px }
|
||||
.prepend-left-10 { margin-left:10px }
|
||||
.prepend-left-20 { margin-left:20px }
|
||||
.append-right-10 { margin-right:10px }
|
||||
.append-right-20 { margin-right:20px }
|
||||
.append-bottom-10 { margin-bottom:10px }
|
||||
.append-bottom-20 { margin-bottom:20px }
|
||||
.inline { display: inline-block }
|
||||
|
||||
.padded { padding:20px }
|
||||
.ipadded { padding:20px!important }
|
||||
.lborder { border-left:1px solid #eee }
|
||||
.underlined_link { text-decoration: underline; }
|
||||
.hint { font-style: italic; color: #999; }
|
||||
.light { color: #888 }
|
||||
.tiny { font-weight: normal }
|
||||
.vtop { vertical-align: top !important; }
|
||||
|
||||
|
||||
/** ALERT MESSAGES **/
|
||||
.alert.alert-disabled {
|
||||
background: #EEE;
|
||||
color: #777;
|
||||
border-color: #DDD;
|
||||
}
|
||||
|
||||
/** HELPERS **/
|
||||
.nothing_here_message {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
color: #666;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
line-height: 36px;
|
||||
}
|
||||
|
||||
.slead {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
margin-bottom: 12px;
|
||||
font-weight: normal;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
|
||||
.tab-content {
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.only-wide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination ul > li > a, .pagination ul > li >span {
|
||||
@include linear-gradient(#f1f1f1, #e1e1e1);
|
||||
color: #333;
|
||||
text-shadow: 0 1px 1px #FFF;
|
||||
}
|
||||
|
||||
pre.well-pre {
|
||||
border: 1px solid #EEE;
|
||||
background: #f9f9f9;
|
||||
border-radius: 0;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.input-append .btn.active, .input-prepend .btn.active {
|
||||
background: #CCC;
|
||||
border-color: #BBB;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
font-weight: bold;
|
||||
@include box-shadow(inset 0 2px 4px rgba(0,0,0,.15));
|
||||
}
|
||||
|
||||
.label {
|
||||
padding: 2px 4px;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/** Big Labels **/
|
||||
.state-label {
|
||||
font-size: 14px;
|
||||
padding: 5px 15px;
|
||||
text-align: center;
|
||||
float: right;
|
||||
position: relative;
|
||||
top: -5px;
|
||||
@include border-radius(4px);
|
||||
text-shadow: none;
|
||||
|
||||
&.state-label-green {
|
||||
background: #4A4;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
&.state-label-red {
|
||||
background: #DA4E49;
|
||||
color: #FFF;
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
form {
|
||||
@extend .form-horizontal;
|
||||
|
||||
label {
|
||||
@extend .control-label;
|
||||
}
|
||||
}
|
||||
|
||||
input.input-xpadding,
|
||||
.add-on.input-xpadding {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
.control-label {
|
||||
padding-top: 6px;
|
||||
}
|
||||
.controls {
|
||||
input, textarea {
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
input[type="radio"], input[type="checkbox"] {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.add-on {
|
||||
padding: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
input[type='search'].search-text-input {
|
||||
background-image: url("icon-search.png");
|
||||
background-repeat: no-repeat;
|
||||
background-position: 10px;
|
||||
padding-left: 25px;
|
||||
@include border-radius(4px);
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
input[type='text'].danger {
|
||||
background: #F2DEDE!important;
|
||||
border-color: #D66;
|
||||
text-shadow: 0 1px 1px #fff
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
font-size: 16px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
@@ -1,92 +0,0 @@
|
||||
/**
|
||||
* nav-pills
|
||||
*
|
||||
*/
|
||||
.nav-pills {
|
||||
.active a {
|
||||
background: $primary_color;
|
||||
}
|
||||
|
||||
> li > a {
|
||||
@include border-radius(0);
|
||||
}
|
||||
|
||||
&.nav-stacked {
|
||||
> li > a {
|
||||
border-left: 4px solid #EEE;
|
||||
padding: 12px;
|
||||
}
|
||||
> .active > a {
|
||||
border-color: $primary_color;
|
||||
border-radius: 0;
|
||||
background: #F1F1F1;
|
||||
color: $style_color;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
}
|
||||
|
||||
&.nav-stacked-menu {
|
||||
background: #FAFAFA;
|
||||
li > a {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.nav-pills-small {
|
||||
> li > a {
|
||||
padding: 8px 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.nav-pills > .active > a > i[class^="icon-"] { background: inherit; }
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* nav-tabs
|
||||
*
|
||||
*/
|
||||
.nav-tabs > li > a, .nav-pills > li > a { color: $style_color; }
|
||||
.nav.nav-tabs {
|
||||
li {
|
||||
> a {
|
||||
padding: 8px 20px;
|
||||
margin-right: 7px;
|
||||
line-height: 20px;
|
||||
border-color: #EEE;
|
||||
color: #888;
|
||||
border-bottom: 1px solid #ddd;
|
||||
.badge {
|
||||
background-color: #eee;
|
||||
color: #888;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
}
|
||||
i[class^="icon-"] {
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
> a {
|
||||
border-color: #CCC;
|
||||
border-bottom: 1px solid #fff;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.nav-small-tabs > li > a { padding: 6px 9px; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* fix to keep tooltips position in top navigation bar
|
||||
*
|
||||
*/
|
||||
.navbar .nav > li {
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
/*
|
||||
* Twitter bootstrap with GitLab customizations/additions
|
||||
*
|
||||
* Some unused bootstrap compontents like panels are not included.
|
||||
* Other components like tabs are modified to GitLab style.
|
||||
*
|
||||
*/
|
||||
|
||||
$font-size-base: 13px !default;
|
||||
$nav-pills-active-link-hover-bg: $bg_style_color;
|
||||
$pagination-active-bg: $bg_style_color;
|
||||
|
||||
// Core variables and mixins
|
||||
@import "bootstrap/variables";
|
||||
@import "bootstrap/mixins";
|
||||
|
||||
// Reset
|
||||
@import "bootstrap/normalize";
|
||||
@import "bootstrap/print";
|
||||
|
||||
// Core CSS
|
||||
@import "bootstrap/scaffolding";
|
||||
@import "bootstrap/type";
|
||||
@import "bootstrap/code";
|
||||
@import "bootstrap/grid";
|
||||
@import "bootstrap/tables";
|
||||
@import "bootstrap/forms";
|
||||
|
||||
// Components
|
||||
@import "bootstrap/component-animations";
|
||||
@import "bootstrap/dropdowns";
|
||||
@import "bootstrap/button-groups";
|
||||
@import "bootstrap/input-groups";
|
||||
@import "bootstrap/navs";
|
||||
@import "bootstrap/navbar";
|
||||
@import "bootstrap/breadcrumbs";
|
||||
@import "bootstrap/pagination";
|
||||
@import "bootstrap/pager";
|
||||
@import "bootstrap/labels";
|
||||
@import "bootstrap/badges";
|
||||
@import "bootstrap/jumbotron";
|
||||
@import "bootstrap/thumbnails";
|
||||
@import "bootstrap/alerts";
|
||||
@import "bootstrap/progress-bars";
|
||||
@import "bootstrap/list-group";
|
||||
@import "bootstrap/wells";
|
||||
@import "bootstrap/close";
|
||||
@import "bootstrap/panels";
|
||||
|
||||
// Components w/ JavaScript
|
||||
@import "bootstrap/modals";
|
||||
@import "bootstrap/tooltip";
|
||||
@import "bootstrap/popovers";
|
||||
@import "bootstrap/carousel";
|
||||
|
||||
// Utility classes
|
||||
.clearfix {
|
||||
@include clearfix();
|
||||
}
|
||||
.center-block {
|
||||
@include center-block();
|
||||
}
|
||||
.pull-right {
|
||||
float: right !important;
|
||||
}
|
||||
.pull-left {
|
||||
float: left !important;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
.show {
|
||||
display: block !important;
|
||||
}
|
||||
.invisible {
|
||||
visibility: hidden;
|
||||
}
|
||||
.text-hide {
|
||||
@include text-hide();
|
||||
}
|
||||
.hidden {
|
||||
display: none !important;
|
||||
visibility: hidden !important;
|
||||
}
|
||||
.affix {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@import "bootstrap/responsive-utilities";
|
||||
|
||||
// Labels
|
||||
.label {
|
||||
padding: 2px 4px;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
display: inline-block;
|
||||
|
||||
&.label-gray {
|
||||
background-color: #eee;
|
||||
color: #999;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
&.label-inverse {
|
||||
background-color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
// Nav tabs
|
||||
.nav.nav-tabs {
|
||||
margin-bottom: 15px;
|
||||
|
||||
li {
|
||||
> a {
|
||||
padding: 8px 20px;
|
||||
margin-right: 7px;
|
||||
line-height: 20px;
|
||||
border-color: #EEE;
|
||||
color: #888;
|
||||
border-bottom: 1px solid #ddd;
|
||||
.badge {
|
||||
background-color: #eee;
|
||||
color: #888;
|
||||
text-shadow: 0 1px 1px #fff;
|
||||
}
|
||||
i[class^="icon-"] {
|
||||
line-height: 14px;
|
||||
}
|
||||
}
|
||||
&.active {
|
||||
> a {
|
||||
border-color: #CCC;
|
||||
border-bottom: 1px solid #fff;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.nav-small-tabs > li > a {
|
||||
padding: 6px 9px;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-tabs > li > a,
|
||||
.nav-pills > li > a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.nav-small > li > a {
|
||||
padding: 3px 5px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Callouts from Bootstrap3 docs
|
||||
*
|
||||
* Not quite alerts, but custom and helpful notes for folks reading the docs.
|
||||
* Requires a base and modifier class.
|
||||
*/
|
||||
|
||||
/* Common styles for all types */
|
||||
.bs-callout {
|
||||
margin: 20px 0;
|
||||
padding: 20px;
|
||||
border-left: 3px solid #eee;
|
||||
color: #666;
|
||||
background: #f9f9f9;
|
||||
}
|
||||
.bs-callout h4 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.bs-callout p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Variations */
|
||||
.bs-callout-danger {
|
||||
background-color: #fdf7f7;
|
||||
border-color: #eed3d7;
|
||||
color: #b94a48;
|
||||
}
|
||||
.bs-callout-warning {
|
||||
background-color: #faf8f0;
|
||||
border-color: #faebcc;
|
||||
color: #8a6d3b;
|
||||
}
|
||||
.bs-callout-info {
|
||||
background-color: #f4f8fa;
|
||||
border-color: #bce8f1;
|
||||
color: #34789a;
|
||||
}
|
||||
.bs-callout-success {
|
||||
background-color: #dff0d8;
|
||||
border-color: #5cA64d;
|
||||
color: #3c763d;
|
||||
}
|
||||
|
||||
// Breadcrumb
|
||||
ul.breadcrumb {
|
||||
background: white;
|
||||
border: none;
|
||||
li {
|
||||
display: inline;
|
||||
text-shadow: 0 1px 0 white
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* fix to keep tooltips position in top navigation bar
|
||||
*
|
||||
*/
|
||||
.navbar .nav > li {
|
||||
position: relative;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -1,71 +1,199 @@
|
||||
.dark .highlight {
|
||||
.dark {
|
||||
background-color: #232323;
|
||||
|
||||
background-color: #333;
|
||||
|
||||
pre {
|
||||
background-color: #333;
|
||||
color: #eee;
|
||||
.line.hll {
|
||||
background: #558;
|
||||
}
|
||||
|
||||
.hll { display: block; background-color: darken($hover, 65%) }
|
||||
.c { color: #888888; font-style: italic } /* Comment */
|
||||
.err { color: #a61717; background-color: #e3d2d2 } /* Error */
|
||||
.k { color: #CDA869; font-weight: bold } /* Keyword */
|
||||
.kp { color: #CDA869; font-weight: bold } /* Keyword */
|
||||
.cm { color: #888888 } /* Comment.Multiline */
|
||||
.cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
|
||||
.c1 { color: #888888 } /* Comment.Single */
|
||||
.cs { color: #cc0000; font-weight: bold; background-color: transparent } /* Comment.Special */
|
||||
.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
|
||||
.ge { font-style: italic } /* Generic.Emph */
|
||||
.gr { color: #aa0000 } /* Generic.Error */
|
||||
.gh { color: #303030 } /* Generic.Heading */
|
||||
.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
|
||||
.go { color: #888888 } /* Generic.Output */
|
||||
.gp { color: #555555 } /* Generic.Prompt */
|
||||
.gs { font-weight: bold } /* Generic.Strong */
|
||||
.gu { color: #606060 } /* Generic.Subheading */
|
||||
.gt { color: #aa0000 } /* Generic.Traceback */
|
||||
.kc{font-weight: bold;} /* Keyword.Constant */
|
||||
.kd{font-weight: bold;} /* Keyword.Declaration */
|
||||
.kn{font-weight: bold;} /* Keyword.Namespace */
|
||||
.kp{font-weight: bold;} /* Keyword.Pseudo */
|
||||
.kr{font-weight: bold;} /* Keyword.Reserved */
|
||||
.kt{color: #458;font-weight: bold;} /* Keyword.Type */
|
||||
.m { color: #0000DD; font-weight: bold } /* Literal.Number */
|
||||
.p { color: #eee; }
|
||||
.s { color: #0AD; background-color: transparent } /* Literal.String */
|
||||
.na{color: #008080;} /* Name.Attribute */
|
||||
.nb{color: #0086B3;} /* Name.Builtin */
|
||||
.nc{color: #ccc;font-weight: bold;} /* Name.Class */
|
||||
.no{color: turquoise;} /* Name.Constant */
|
||||
.ni{color: #800080;}
|
||||
.ne{color: #900;font-weight: bold;} /* Name.Exception */
|
||||
.nf{color: #ccc;font-weight: bold;} /* Name.Function */
|
||||
.nn{color: #79C3E0;font-weight: bold;} /* Name.Namespace */
|
||||
.nt{color: #fc5;} /* Name.Tag */
|
||||
.nv{color: #FA4;} /* Name.Variable */
|
||||
.py { color: #336699; font-weight: bold } /* Name.Property */
|
||||
.ow { color: #008800 } /* Operator.Word */
|
||||
.w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.mf { color: #7AC; font-weight: bold } /* Literal.Number.Float */
|
||||
.mh { color: #7AC; font-weight: bold } /* Literal.Number.Hex */
|
||||
.mi {color: #099;} /* Literal.Number.Integer */
|
||||
.mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
|
||||
.sb { color: #dd2200; background-color: transparent; } /* Literal.String.Backtick */
|
||||
.sc{color: #d14;} /* Literal.String.Char */
|
||||
.sd { color: #dd2200; background-color: transparent; } /* Literal.String.Doc */
|
||||
.s2{color: orange;} /* Literal.String.Double */
|
||||
.se{color: orange;} /* Literal.String.Escape */
|
||||
.sh{color: orange;} /* Literal.String.Heredoc */
|
||||
.si{color: orange;} /* Literal.String.Interpol */
|
||||
.sx{color: orange;} /* Literal.String.Other */
|
||||
.sr{color: orange;} /* Literal.String.Regex */
|
||||
.s1{color: orange;} /* Literal.String.Single */
|
||||
.ss{color: orange;} /* Literal.String.Symbol */
|
||||
.bp { color: #D58 } /* Name.Builtin.Pseudo */
|
||||
.vc { color: #336699 } /* Name.Variable.Class */
|
||||
.vg { color: #dd7700 } /* Name.Variable.Global */
|
||||
.vi { color: cyan }
|
||||
}
|
||||
.highlight{
|
||||
border-left: 1px solid #444;
|
||||
}
|
||||
|
||||
.no-highlight {
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
.line-numbers a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #232323;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
background: #232323;
|
||||
color: #E6E1DC;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-template_comment,
|
||||
.hljs-javadoc,
|
||||
.hljs-shebang {
|
||||
color: #BC9458;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.ruby .hljs-function .hljs-keyword,
|
||||
.hljs-request,
|
||||
.hljs-status,
|
||||
.nginx .hljs-title,
|
||||
.method,
|
||||
.hljs-list .hljs-title {
|
||||
color: #C26230;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-number,
|
||||
.hljs-regexp,
|
||||
.hljs-tag .hljs-value,
|
||||
.hljs-cdata,
|
||||
.hljs-filter .hljs-argument,
|
||||
.hljs-attr_selector,
|
||||
.apache .hljs-cbracket,
|
||||
.hljs-date,
|
||||
.tex .hljs-command,
|
||||
.markdown .hljs-link_label {
|
||||
color: #A5C261;
|
||||
}
|
||||
|
||||
.hljs-subst {
|
||||
color: #519F50;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-tag .hljs-keyword,
|
||||
.hljs-tag .hljs-title,
|
||||
.hljs-doctype,
|
||||
.hljs-sub .hljs-identifier,
|
||||
.hljs-pi,
|
||||
.input_number {
|
||||
color: #E8BF6A;
|
||||
}
|
||||
|
||||
.hljs-identifier {
|
||||
color: #D0D0FF;
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title,
|
||||
.haskell .hljs-type,
|
||||
.smalltalk .hljs-class,
|
||||
.hljs-javadoctag,
|
||||
.hljs-yardoctag,
|
||||
.hljs-phpdoc {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hljs-constant {
|
||||
color: #DA4939;
|
||||
}
|
||||
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-built_in,
|
||||
.ruby .hljs-symbol .hljs-string,
|
||||
.ruby .hljs-symbol .hljs-identifier,
|
||||
.markdown .hljs-link_url,
|
||||
.hljs-attribute {
|
||||
color: #6D9CBE;
|
||||
}
|
||||
|
||||
.markdown .hljs-link_url {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.hljs-params,
|
||||
.hljs-variable,
|
||||
.clojure .hljs-attribute {
|
||||
color: #D0D0FF;
|
||||
}
|
||||
|
||||
.css .hljs-tag,
|
||||
.hljs-rules .hljs-property,
|
||||
.hljs-pseudo,
|
||||
.tex .hljs-special {
|
||||
color: #CDA869;
|
||||
}
|
||||
|
||||
.css .hljs-class {
|
||||
color: #9B703F;
|
||||
}
|
||||
|
||||
.hljs-rules .hljs-keyword {
|
||||
color: #C5AF75;
|
||||
}
|
||||
|
||||
.hljs-rules .hljs-value {
|
||||
color: #CF6A4C;
|
||||
}
|
||||
|
||||
.css .hljs-id {
|
||||
color: #8B98AB;
|
||||
}
|
||||
|
||||
.hljs-annotation,
|
||||
.apache .hljs-sqbracket,
|
||||
.nginx .hljs-built_in {
|
||||
color: #9B859D;
|
||||
}
|
||||
|
||||
.hljs-preprocessor,
|
||||
.hljs-preprocessor *,
|
||||
.hljs-pragma {
|
||||
color: #8996A8 !important;
|
||||
}
|
||||
|
||||
.hljs-hexcolor,
|
||||
.css .hljs-value .hljs-number {
|
||||
color: #A5C261;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-decorator,
|
||||
.css .hljs-function {
|
||||
color: #FFC66D;
|
||||
}
|
||||
|
||||
.diff .hljs-header,
|
||||
.hljs-chunk {
|
||||
background-color: #2F33AB;
|
||||
color: #E6E1DC;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.diff .hljs-change {
|
||||
background-color: #4A410D;
|
||||
color: #F8F8F8;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
background-color: #144212;
|
||||
color: #E6E1DC;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
background-color: #600;
|
||||
color: #E6E1DC;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.coffeescript .javascript,
|
||||
.javascript .xml,
|
||||
.tex .hljs-formula,
|
||||
.xml .javascript,
|
||||
.xml .vbscript,
|
||||
.xml .css,
|
||||
.xml .hljs-cdata {
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,89 +1,148 @@
|
||||
$monokai-fg: #f8f8f2;
|
||||
$monokai-comment: #75715e;
|
||||
$monokai-pink: #f92672;
|
||||
$monokai-blue: #66d9ef;
|
||||
$monokai-green: #a6e22e;
|
||||
$monokai-gold: #e6db74;
|
||||
$monokai-dark: #3b3a32;
|
||||
$monokai-purple: #ae81ff;
|
||||
|
||||
.monokai .highlight {
|
||||
|
||||
.monokai {
|
||||
background-color: #272822;
|
||||
|
||||
.highlight{
|
||||
border-left: 1px solid #444;
|
||||
}
|
||||
|
||||
.line.hll {
|
||||
background: #558;
|
||||
}
|
||||
|
||||
.no-highlight {
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
.line-numbers a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #272822;
|
||||
color: $monokai-fg;
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.hll { background-color: darken($hover, 65%) }
|
||||
.c { color: $monokai-comment } /* Comment */
|
||||
.err { color: $monokai-fg } /* Error */
|
||||
.g { color: $monokai-fg } /* Generic */
|
||||
.k { color: $monokai-pink } /* Keyword */
|
||||
.l { color: $monokai-fg } /* Literal */
|
||||
.n { color: $monokai-blue } /* Name */
|
||||
.o { color: $monokai-fg } /* Operator */
|
||||
.x { color: $monokai-fg } /* Other */
|
||||
.p { color: $monokai-fg } /* Punctuation */
|
||||
.cm { color: $monokai-comment } /* Comment.Multiline */
|
||||
.cp { color: $monokai-comment } /* Comment.Preproc */
|
||||
.c1 { color: $monokai-comment } /* Comment.Single */
|
||||
.cs { color: $monokai-comment } /* Comment.Special */
|
||||
.gd { color: #8b0807 } /* Generic.Deleted */
|
||||
.ge { color: $monokai-fg; text-decoration: underline } /* Generic.Emph */
|
||||
.gr { color: $monokai-fg } /* Generic.Error */
|
||||
.gh { color: $monokai-fg; font-weight: bold } /* Generic.Heading */
|
||||
.gi { color: $monokai-fg; font-weight: bold; background-color: #46830c } /* Generic.Inserted */
|
||||
.go { color: $monokai-dark; background-color: #31322c } /* Generic.Output */
|
||||
.gp { color: $monokai-fg } /* Generic.Prompt */
|
||||
.gs { color: $monokai-fg } /* Generic.Strong */
|
||||
.gu { color: $monokai-fg; font-weight: bold } /* Generic.Subheading */
|
||||
.gt { color: #f8f8f0; background-color: $monokai-pink } /* Generic.Traceback */
|
||||
.kc { color: $monokai-purple } /* Keyword.Constant */
|
||||
.kd { color: $monokai-pink } /* Keyword.Declaration */
|
||||
.kn { color: $monokai-pink } /* Keyword.Namespace */
|
||||
.kp { color: $monokai-pink } /* Keyword.Pseudo */
|
||||
.kr { color: $monokai-pink } /* Keyword.Reserved */
|
||||
.kt { color: $monokai-fg } /* Keyword.Type */
|
||||
.ld { color: $monokai-fg } /* Literal.Date */
|
||||
.m { color: $monokai-purple } /* Literal.Number */
|
||||
.s { color: $monokai-gold } /* Literal.String */
|
||||
.na { color: $monokai-purple } /* Name.Attribute */
|
||||
.nb { color: $monokai-blue } /* Name.Builtin */
|
||||
.nc { color: $monokai-fg } /* Name.Class */
|
||||
.no { color: $monokai-fg } /* Name.Constant */
|
||||
.nd { color: $monokai-fg } /* Name.Decorator */
|
||||
.ni { color: $monokai-fg } /* Name.Entity */
|
||||
.ne { color: $monokai-fg } /* Name.Exception */
|
||||
.nf { color: $monokai-green } /* Name.Function */
|
||||
.nl { color: $monokai-gold } /* Name.Label */
|
||||
.nn { color: $monokai-fg } /* Name.Namespace */
|
||||
.nx { color: $monokai-fg } /* Name.Other */
|
||||
.nt { color: $monokai-pink } /* Name.Tag */
|
||||
.nv { color: $monokai-blue; font-style: italic } /* Name.Variable */
|
||||
.py { color: $monokai-fg } /* Name.Property */
|
||||
.ow { color: $monokai-pink } /* Operator.Word */
|
||||
.w { color: $monokai-fg } /* Text.Whitespace */
|
||||
.mf { color: $monokai-purple } /* Literal.Number.Float */
|
||||
.mh { color: $monokai-purple } /* Literal.Number.Hex */
|
||||
.mi { color: $monokai-purple } /* Literal.Number.Integer */
|
||||
.mo { color: $monokai-purple } /* Literal.Number.Oct */
|
||||
.sb { color: $monokai-gold } /* Literal.String.Backtick */
|
||||
.sc { color: $monokai-gold } /* Literal.String.Char */
|
||||
.sd { color: $monokai-gold } /* Literal.String.Doc */
|
||||
.s2 { color: $monokai-gold } /* Literal.String.Double */
|
||||
.se { color: $monokai-gold } /* Literal.String.Escape */
|
||||
.sh { color: $monokai-gold } /* Literal.String.Heredoc */
|
||||
.si { color: $monokai-gold } /* Literal.String.Interpol */
|
||||
.sx { color: $monokai-gold } /* Literal.String.Other */
|
||||
.sr { color: $monokai-gold } /* Literal.String.Regex */
|
||||
.s1 { color: $monokai-gold } /* Literal.String.Single */
|
||||
.ss { color: $monokai-gold } /* Literal.String.Symbol */
|
||||
.bp { color: $monokai-fg } /* Name.Builtin.Pseudo */
|
||||
.vc { color: $monokai-blue; font-style: italic } /* Name.Variable.Class */
|
||||
.vg { color: $monokai-blue; font-style: italic } /* Name.Variable.Global */
|
||||
.vi { color: $monokai-blue; font-style: italic } /* Name.Variable.Instance */
|
||||
.il { color: $monokai-purple } /* Literal.Number.Integer.Long */
|
||||
}
|
||||
.hljs {
|
||||
display: block;
|
||||
background: #272822;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-tag .hljs-title,
|
||||
.hljs-keyword,
|
||||
.hljs-literal,
|
||||
.hljs-strong,
|
||||
.hljs-change,
|
||||
.hljs-winutils,
|
||||
.hljs-flow,
|
||||
.lisp .hljs-title,
|
||||
.clojure .hljs-built_in,
|
||||
.nginx .hljs-title,
|
||||
.tex .hljs-special {
|
||||
color: #F92672;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
.hljs .hljs-constant,
|
||||
.asciidoc .hljs-code {
|
||||
color: #66D9EF;
|
||||
}
|
||||
|
||||
.hljs-code,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-header {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hljs-link_label,
|
||||
.hljs-attribute,
|
||||
.hljs-symbol,
|
||||
.hljs-symbol .hljs-string,
|
||||
.hljs-value,
|
||||
.hljs-regexp {
|
||||
color: #BF79DB;
|
||||
}
|
||||
|
||||
.hljs-link_url,
|
||||
.hljs-tag .hljs-value,
|
||||
.hljs-string,
|
||||
.hljs-bullet,
|
||||
.hljs-subst,
|
||||
.hljs-title,
|
||||
.hljs-emphasis,
|
||||
.haskell .hljs-type,
|
||||
.hljs-preprocessor,
|
||||
.hljs-pragma,
|
||||
.ruby .hljs-class .hljs-parent,
|
||||
.hljs-built_in,
|
||||
.sql .hljs-aggregate,
|
||||
.django .hljs-template_tag,
|
||||
.django .hljs-variable,
|
||||
.smalltalk .hljs-class,
|
||||
.hljs-javadoc,
|
||||
.django .hljs-filter .hljs-argument,
|
||||
.smalltalk .hljs-localvars,
|
||||
.smalltalk .hljs-array,
|
||||
.hljs-attr_selector,
|
||||
.hljs-pseudo,
|
||||
.hljs-addition,
|
||||
.hljs-stream,
|
||||
.hljs-envvar,
|
||||
.apache .hljs-tag,
|
||||
.apache .hljs-cbracket,
|
||||
.tex .hljs-command,
|
||||
.hljs-prompt {
|
||||
color: #A6E22E;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.java .hljs-annotation,
|
||||
.smartquote,
|
||||
.hljs-blockquote,
|
||||
.hljs-horizontal_rule,
|
||||
.python .hljs-decorator,
|
||||
.hljs-template_comment,
|
||||
.hljs-pi,
|
||||
.hljs-doctype,
|
||||
.hljs-deletion,
|
||||
.hljs-shebang,
|
||||
.apache .hljs-sqbracket,
|
||||
.tex .hljs-formula {
|
||||
color: #75715E;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-literal,
|
||||
.css .hljs-id,
|
||||
.hljs-phpdoc,
|
||||
.hljs-title,
|
||||
.hljs-header,
|
||||
.haskell .hljs-type,
|
||||
.vbscript .hljs-built_in,
|
||||
.sql .hljs-aggregate,
|
||||
.rsl .hljs-built_in,
|
||||
.smalltalk .hljs-class,
|
||||
.diff .hljs-header,
|
||||
.hljs-chunk,
|
||||
.hljs-winutils,
|
||||
.bash .hljs-variable,
|
||||
.apache .hljs-tag,
|
||||
.tex .hljs-special,
|
||||
.hljs-request,
|
||||
.hljs-status {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.coffeescript .javascript,
|
||||
.javascript .xml,
|
||||
.tex .hljs-formula,
|
||||
.xml .javascript,
|
||||
.xml .vbscript,
|
||||
.xml .css,
|
||||
.xml .hljs-cdata {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,80 +1,125 @@
|
||||
.solarized-dark .highlight {
|
||||
|
||||
.solarized-dark {
|
||||
background-color: #002B36;
|
||||
|
||||
|
||||
.highlight{
|
||||
border-left: 1px solid #113b46;
|
||||
}
|
||||
|
||||
.line.hll {
|
||||
background: #000;
|
||||
}
|
||||
|
||||
.no-highlight {
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
pre {
|
||||
background-color: #002B36;
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
.hll { background-color: #073642 }
|
||||
.c { color: #586E75 } /* Comment */
|
||||
.err { color: #93A1A1 } /* Error */
|
||||
.g { color: #93A1A1 } /* Generic */
|
||||
.k { color: #859900 } /* Keyword */
|
||||
.l { color: #93A1A1 } /* Literal */
|
||||
.n { color: #93A1A1 } /* Name */
|
||||
.o { color: #859900 } /* Operator */
|
||||
.x { color: #CB4B16 } /* Other */
|
||||
.p { color: #93A1A1 } /* Punctuation */
|
||||
.cm { color: #586E75 } /* Comment.Multiline */
|
||||
.cp { color: #859900 } /* Comment.Preproc */
|
||||
.c1 { color: #586E75 } /* Comment.Single */
|
||||
.cs { color: #859900 } /* Comment.Special */
|
||||
.gd { color: #2AA198 } /* Generic.Deleted */
|
||||
.ge { color: #93A1A1; font-style: italic } /* Generic.Emph */
|
||||
.gr { color: #DC322F } /* Generic.Error */
|
||||
.gh { color: #CB4B16 } /* Generic.Heading */
|
||||
.gi { color: #859900 } /* Generic.Inserted */
|
||||
.go { color: #93A1A1 } /* Generic.Output */
|
||||
.gp { color: #93A1A1 } /* Generic.Prompt */
|
||||
.gs { color: #93A1A1; font-weight: bold } /* Generic.Strong */
|
||||
.gu { color: #CB4B16 } /* Generic.Subheading */
|
||||
.gt { color: #93A1A1 } /* Generic.Traceback */
|
||||
.kc { color: #CB4B16 } /* Keyword.Constant */
|
||||
.kd { color: #268BD2 } /* Keyword.Declaration */
|
||||
.kn { color: #859900 } /* Keyword.Namespace */
|
||||
.kp { color: #859900 } /* Keyword.Pseudo */
|
||||
.kr { color: #268BD2 } /* Keyword.Reserved */
|
||||
.kt { color: #DC322F } /* Keyword.Type */
|
||||
.ld { color: #93A1A1 } /* Literal.Date */
|
||||
.m { color: #2AA198 } /* Literal.Number */
|
||||
.s { color: #2AA198 } /* Literal.String */
|
||||
.na { color: #93A1A1 } /* Name.Attribute */
|
||||
.nb { color: #B58900 } /* Name.Builtin */
|
||||
.nc { color: #268BD2 } /* Name.Class */
|
||||
.no { color: #CB4B16 } /* Name.Constant */
|
||||
.nd { color: #268BD2 } /* Name.Decorator */
|
||||
.ni { color: #CB4B16 } /* Name.Entity */
|
||||
.ne { color: #CB4B16 } /* Name.Exception */
|
||||
.nf { color: #268BD2 } /* Name.Function */
|
||||
.nl { color: #93A1A1 } /* Name.Label */
|
||||
.nn { color: #93A1A1 } /* Name.Namespace */
|
||||
.nx { color: #93A1A1 } /* Name.Other */
|
||||
.py { color: #93A1A1 } /* Name.Property */
|
||||
.nt { color: #268BD2 } /* Name.Tag */
|
||||
.nv { color: #268BD2 } /* Name.Variable */
|
||||
.ow { color: #859900 } /* Operator.Word */
|
||||
.w { color: #93A1A1 } /* Text.Whitespace */
|
||||
.mf { color: #2AA198 } /* Literal.Number.Float */
|
||||
.mh { color: #2AA198 } /* Literal.Number.Hex */
|
||||
.mi { color: #2AA198 } /* Literal.Number.Integer */
|
||||
.mo { color: #2AA198 } /* Literal.Number.Oct */
|
||||
.sb { color: #586E75 } /* Literal.String.Backtick */
|
||||
.sc { color: #2AA198 } /* Literal.String.Char */
|
||||
.sd { color: #93A1A1 } /* Literal.String.Doc */
|
||||
.s2 { color: #2AA198 } /* Literal.String.Double */
|
||||
.se { color: #CB4B16 } /* Literal.String.Escape */
|
||||
.sh { color: #93A1A1 } /* Literal.String.Heredoc */
|
||||
.si { color: #2AA198 } /* Literal.String.Interpol */
|
||||
.sx { color: #2AA198 } /* Literal.String.Other */
|
||||
.sr { color: #DC322F } /* Literal.String.Regex */
|
||||
.s1 { color: #2AA198 } /* Literal.String.Single */
|
||||
.ss { color: #2AA198 } /* Literal.String.Symbol */
|
||||
.bp { color: #268BD2 } /* Name.Builtin.Pseudo */
|
||||
.vc { color: #268BD2 } /* Name.Variable.Class */
|
||||
.vg { color: #268BD2 } /* Name.Variable.Global */
|
||||
.vi { color: #268BD2 } /* Name.Variable.Instance */
|
||||
.il { color: #2AA198 } /* Literal.Number.Integer.Long */
|
||||
}
|
||||
.line-numbers a {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
background: #002b36;
|
||||
color: #839496;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-template_comment,
|
||||
.diff .hljs-header,
|
||||
.hljs-doctype,
|
||||
.hljs-pi,
|
||||
.lisp .hljs-string,
|
||||
.hljs-javadoc {
|
||||
color: #586e75;
|
||||
}
|
||||
|
||||
/* Solarized Green */
|
||||
.hljs-keyword,
|
||||
.hljs-winutils,
|
||||
.method,
|
||||
.hljs-addition,
|
||||
.css .hljs-tag,
|
||||
.hljs-request,
|
||||
.hljs-status,
|
||||
.nginx .hljs-title {
|
||||
color: #859900;
|
||||
}
|
||||
|
||||
/* Solarized Cyan */
|
||||
.hljs-number,
|
||||
.hljs-command,
|
||||
.hljs-string,
|
||||
.hljs-tag .hljs-value,
|
||||
.hljs-rules .hljs-value,
|
||||
.hljs-phpdoc,
|
||||
.tex .hljs-formula,
|
||||
.hljs-regexp,
|
||||
.hljs-hexcolor,
|
||||
.hljs-link_url {
|
||||
color: #2aa198;
|
||||
}
|
||||
|
||||
/* Solarized Blue */
|
||||
.hljs-title,
|
||||
.hljs-localvars,
|
||||
.hljs-chunk,
|
||||
.hljs-decorator,
|
||||
.hljs-built_in,
|
||||
.hljs-identifier,
|
||||
.vhdl .hljs-literal,
|
||||
.hljs-id,
|
||||
.css .hljs-function {
|
||||
color: #268bd2;
|
||||
}
|
||||
|
||||
/* Solarized Yellow */
|
||||
.hljs-attribute,
|
||||
.hljs-variable,
|
||||
.lisp .hljs-body,
|
||||
.smalltalk .hljs-number,
|
||||
.hljs-constant,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-parent,
|
||||
.haskell .hljs-type,
|
||||
.hljs-link_reference {
|
||||
color: #b58900;
|
||||
}
|
||||
|
||||
/* Solarized Orange */
|
||||
.hljs-preprocessor,
|
||||
.hljs-preprocessor .hljs-keyword,
|
||||
.hljs-pragma,
|
||||
.hljs-shebang,
|
||||
.hljs-symbol,
|
||||
.hljs-symbol .hljs-string,
|
||||
.diff .hljs-change,
|
||||
.hljs-special,
|
||||
.hljs-attr_selector,
|
||||
.hljs-subst,
|
||||
.hljs-cdata,
|
||||
.clojure .hljs-title,
|
||||
.css .hljs-pseudo,
|
||||
.hljs-header {
|
||||
color: #cb4b16;
|
||||
}
|
||||
|
||||
/* Solarized Red */
|
||||
.hljs-deletion,
|
||||
.hljs-important {
|
||||
color: #dc322f;
|
||||
}
|
||||
|
||||
/* Solarized Violet */
|
||||
.hljs-link_label {
|
||||
color: #6c71c4;
|
||||
}
|
||||
|
||||
.tex .hljs-formula {
|
||||
background: #073642;
|
||||
}
|
||||
}
|
||||
|
||||