Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-dohm committed Oct 23, 2020
0 parents commit f7a790e
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright © 2020 [Lee Dohm](https://www.lee-dohm.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Discourse User Profile GitHub Link

A [Discourse][discourse] theme component that adds a link to the user's GitHub profile on their user profile page and user card, so long as their Discourse username matches their GitHub username.

[discourse]: https://www.discourse.org

## License

[MIT](LICENSE.md)
7 changes: 7 additions & 0 deletions about.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "User Profile GitHub Link",
"component": true,
"license_url": "https://github.com/lee-dohm/discourse-user-profile-github-link/blob/main/LICENSE.md",
"about_url": "https://github.com/lee-dohm/discourse-user-profile-github-link/",
"theme_version": "0.1.0"
}
3 changes: 3 additions & 0 deletions common/common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.github-profile-link a[href] {
text-decoration: none !important;
}
6 changes: 6 additions & 0 deletions common/head_tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script type='text/x-handlebars' data-template-name='/connectors/user-post-names/github-profile-link'>
<h3><a href="https://github.com/{{model.username}}" target="_blank">{{d-icon 'fab-github'}} GitHub Profile</a></h3>
</script>
<script type='text/x-handlebars' data-template-name='/connectors/user-card-post-names/github-profile-link'>
<h3><a href="https://github.com/{{user.username}}" target="_blank">{{d-icon 'fab-github'}} GitHub Profile</a></h3>
</script>

0 comments on commit f7a790e

Please sign in to comment.