|
80 | 80 | </div> |
81 | 81 | <div class="loggin"> |
82 | 82 | <div class="wrap"> |
83 | | - <h2 class="has-text-align-center" style="margin-top: 0;">Try Cloud</h2> |
84 | | - <div class="wp-block-buttons split-button is-layout-flex wp-block-buttons-is-layout-flex"> |
85 | | - <%= if assigns[:github] do %> |
86 | | - <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
87 | | - <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color wp-element-button" |
88 | | - href="<%= @github %>" |
89 | | - style="border-color:#CCCCCC;border-width:1px;border-radius:8px"> |
90 | | - <img decoding="async" width="22" height="22" class="wp-image-23604" style="width: 22px;" src="https://semaphoreci.com/wp-content/uploads/2024/04/github.svg" alt=""> |
91 | | - <strong>Signup with GitHub</strong> |
92 | | - </a> |
| 83 | + <%= if assigns[:logged_in] do %> |
| 84 | + <h2 class="has-text-align-center" style="margin-top: 0;">You're already logged in</h2> |
| 85 | + <div class="wp-block-buttons split-button is-layout-flex wp-block-buttons-is-layout-flex"> |
| 86 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
| 87 | + <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color has-border-color wp-element-button" |
| 88 | + href="<%= @me_url %>" |
| 89 | + style="border-color:#CCCCCC;border-width:1px;border-radius:8px;display:flex;align-items:center;justify-content:center;"> |
| 90 | + <strong style="display:flex;align-items:center;">Continue to <img decoding="async" src="https://semaphore.io/wp-content/uploads/2024/04/semaphore-logo.svg" alt="Semaphore" style="height: 18px; margin-left: 6px;"></strong> |
| 91 | + </a> |
| 92 | + </div> |
93 | 93 | </div> |
94 | | - <% end %> |
95 | | - <%= if assigns[:bitbucket] do %> |
96 | | - <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
97 | | - <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color has-border-color wp-element-button" |
98 | | - style="border-color:#CCCCCC;border-width:1px;border-radius:8px" |
99 | | - href="<%= @bitbucket %>"> |
100 | | - <img decoding="async" width="20" height="19" class="wp-image-23603" style="width: 20px;" src="https://semaphoreci.com/wp-content/uploads/2024/04/bitbucket.svg" alt=""> |
101 | | - <strong>Signup with Bitbucket</strong> |
102 | | - </a> |
| 94 | + <% else %> |
| 95 | + <h2 class="has-text-align-center" style="margin-top: 0;">Try Cloud</h2> |
| 96 | + <div class="wp-block-buttons split-button is-layout-flex wp-block-buttons-is-layout-flex"> |
| 97 | + <%= if assigns[:github] do %> |
| 98 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
| 99 | + <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color wp-element-button" |
| 100 | + href="<%= @github %>" |
| 101 | + style="border-color:#CCCCCC;border-width:1px;border-radius:8px"> |
| 102 | + <img decoding="async" width="22" height="22" class="wp-image-23604" style="width: 22px;" src="https://semaphoreci.com/wp-content/uploads/2024/04/github.svg" alt=""> |
| 103 | + <strong>Signup with GitHub</strong> |
| 104 | + </a> |
| 105 | + </div> |
| 106 | + <% end %> |
| 107 | + <%= if assigns[:bitbucket] do %> |
| 108 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
| 109 | + <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color has-border-color wp-element-button" |
| 110 | + style="border-color:#CCCCCC;border-width:1px;border-radius:8px" |
| 111 | + href="<%= @bitbucket %>"> |
| 112 | + <img decoding="async" width="20" height="19" class="wp-image-23603" style="width: 20px;" src="https://semaphoreci.com/wp-content/uploads/2024/04/bitbucket.svg" alt=""> |
| 113 | + <strong>Signup with Bitbucket</strong> |
| 114 | + </a> |
| 115 | + </div> |
| 116 | + <% end %> |
| 117 | + <%= if assigns[:gitlab] do %> |
| 118 | + <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
| 119 | + <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color has-border-color wp-element-button" |
| 120 | + style="border-color:#CCCCCC;border-width:1px;border-radius:8px" |
| 121 | + href="<%= @gitlab %>"> |
| 122 | + <img decoding="async" width="20" height="19" class="wp-image-23603" style="width: 20px;" src="https://semaphoreci.com/wp-content/uploads/2025/02/gitlab.svg" alt=""> |
| 123 | + <strong>Signup with GitLab</strong> |
| 124 | + </a> |
| 125 | + </div> |
| 126 | + <% end %> |
103 | 127 | </div> |
104 | | - <% end %> |
105 | | - <%= if assigns[:gitlab] do %> |
106 | | - <div class="wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-v8-dropshadow has-font-down-2-font-size"> |
107 | | - <a class="wp-block-button__link has-v-8-black-color has-v-8-white-background-color has-text-color has-background has-link-color has-border-color wp-element-button" |
108 | | - style="border-color:#CCCCCC;border-width:1px;border-radius:8px" |
109 | | - href="<%= @gitlab %>"> |
110 | | - <img decoding="async" width="20" height="19" class="wp-image-23603" style="width: 20px;" src="https://semaphoreci.com/wp-content/uploads/2025/02/gitlab.svg" alt=""> |
111 | | - <strong>Signup with GitLab</strong> |
112 | | - </a> |
113 | | - </div> |
114 | | - <% end %> |
115 | | - </div> |
116 | | - <p class="has-text-align-center has-font-down-3-font-size">By continuing, you agree to our <a href="https://semaphoreci.com/tos">Terms of Service</a> and <a href="https://semaphoreci.com/privacy">Privacy policy</a>. </p> |
| 128 | + <p class="has-text-align-center has-font-down-3-font-size">By continuing, you agree to our <a href="https://semaphoreci.com/tos">Terms of Service</a> and <a href="https://semaphoreci.com/privacy">Privacy policy</a>. </p> |
| 129 | + <% end %> |
117 | 130 | </div> |
118 | 131 | </div> |
119 | 132 | </div> |
|
0 commit comments