| @@ -1,33 +1,3 @@ |
| 1 | | −jetBrainsLink = (className) -> |
| 2 | | − type = jetBrainsType() |
| 3 | | − path = "/#{type}" if type |
| 4 | | − |
| 5 | | − """ |
| 6 | | − <a href="http://out.devdocs.io/s/jetbrains#{path || ''}" class="#{className}"> |
| 7 | | − <span class="_logo-thx _jetbrains-logo">JetBrains</span> |
| 8 | | − <span class="_logo-info">#{JETBRAINS_INFO[type || 'default']}</span> |
| 9 | | − </a> |
| 10 | | − """ |
| 11 | | − |
| 12 | | −JETBRAINS_INFO = |
| 13 | | − ruby: 'Developing in Ruby? Boost your productivity with RubyMine, a powerful IDE with smart coding assistance and advanced testing and debugging features.' |
| 14 | | − python: 'Developing in Python? Enjoy productive development with PyCharm, an intelligent Python IDE offering unique coding experience.' |
| 15 | | − c: 'Developing in C? Now benefit from CLion, a C/C++ IDE enhancing your productivity with on-thy-fly static analysis and automated refactorings.' |
| 16 | | − web: 'Doing client-side development? Try WebStorm, an IDE that really understands JavaScript and modern frameworks like AngularJS and boosts your productivity.' |
| 17 | | − default: 'JetBrains makes software development a more productive and enjoyable experience through smart IDEs and code editors.' |
| 18 | | − |
| 19 | | −jetBrainsType = -> |
| 20 | | − docs = if app.settings then app.settings.getDocs() else [] |
| 21 | | − |
| 22 | | − if docs.indexOf('ruby') != -1 |
| 23 | | − 'ruby' |
| 24 | | − else if docs.indexOf('python') != -1 || docs.indexOf('python2') != -1 |
| 25 | | − 'python' |
| 26 | | − else if docs.indexOf('c') != -1 or docs.indexOf('cpp') != -1 |
| 27 | | − 'c' |
| 28 | | − else if docs.indexOf('javascript') != -1 or docs.indexOf('jquery') != -1 |
| 29 | | − 'web' |
| 30 | | − |
| 31 | 1 | codeSchoolLink = (className) -> """ |
| 32 | 2 | <a href="http://out.devdocs.io/s/code-school" class="#{className}"> |
| 33 | 3 | <span class="_logo-thx _code-school-logo">Code School</span> |
| @@ -37,10 +7,7 @@ codeSchoolLink = (className) -> """ · 3 unmodified lines |
| 37 | 7 | |
| 38 | 8 | app.templates.splash = -> """ |
| 39 | 9 | <div class="_splash-title">DevDocs</div> |
| 40 | | − <div class="_splash-sponsors"> |
| 41 | | − #{jetBrainsLink '_splash-sponsor'} |
| 42 | | − #{codeSchoolLink '_splash-sponsor'} |
| 43 | | − </div> |
| 10 | + <div class="_splash-sponsors">#{codeSchoolLink '_splash-sponsor'}</div> |
| 44 | 11 | """ |
| 45 | 12 | |
| 46 | 13 | <% if App.development? %> |
| @@ -63,8 +30,7 @@ app.templates.intro = """ · 16 unmodified lines |
| 63 | 30 | <a href="https://github.com/Thibaut/devdocs/blob/master/LICENSE">LICENSE</a> files. |
| 64 | 31 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! |
| 65 | 32 | </ol> |
| 66 | | − <p class="_intro-sponsors"> |
| 67 | | − #{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'} |
| 33 | + <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'} |
| 68 | 34 | <p>Happy coding! |
| 69 | 35 | </div></div> |
| 70 | 36 | """ |
| @@ -87,8 +53,7 @@ app.templates.intro = """ · 16 unmodified lines |
| 87 | 53 | <iframe class="_github-btn" src="//ghbtns.com/github-btn.html?user=Thibaut&repo=devdocs&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100" height="20"></iframe> |
| 88 | 54 | <li>If you like the app, please consider supporting the project on <a href="https://gratipay.com/devdocs/">Gratipay</a>. Thanks! |
| 89 | 55 | </ol> |
| 90 | | − <p class="_intro-sponsors"> |
| 91 | | − #{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'} |
| 56 | + <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'} |
| 92 | 57 | <p>Happy coding! |
| 93 | 58 | </div></div> |
| 94 | 59 | """ |
| @@ -116,7 +81,7 @@ app.templates.mobileIntro = """ · 21 unmodified lines |
| 116 | 81 | <li>DevDocs is <a href="https://github.com/Thibaut/devdocs">open source</a> |
| 117 | 82 | </ol> |
| 118 | 83 | <p>Happy coding! |
| 119 | | − <p class="_intro-sponsors">#{jetBrainsLink '_intro-sponsor'} #{codeSchoolLink '_intro-sponsor'}</p> |
| 84 | + <p class="_intro-sponsors">#{codeSchoolLink '_intro-sponsor'}</p> |
| 120 | 85 | <a class="_intro-hide" data-hide-intro>Stop showing this message</a> |
| 121 | 86 | </div> |
| 122 | 87 | """ |