Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve buttons layout at /profile #4280

Closed
oorjitchowdhary opened this issue Dec 12, 2018 · 21 comments
Closed

Improve buttons layout at /profile #4280

oorjitchowdhary opened this issue Dec 12, 2018 · 21 comments

Comments

@oorjitchowdhary
Copy link
Member

Problem

The buttons below tags at /profile are not well formatted and well-aligned.

screenshot 113

Code link

<a class="btn btn-default btn-sm btn-block" href="/feed/<%= @user.name %>.rss"><i class="fa fa-rss" style="color:orange;"></i> <%= t('users.profile.rss_feed_for') %> <%= @user.name %></a>
<% if current_user && current_user.uid == @user.uid %>
<a href="/profile/<%= @user.name %>/edit" class="btn btn-default btn-sm btn-block"><i class="fa fa-pencil"></i> <%= t('users.profile.edit_profile') %></a>
<% end %>
</p>
<% if @profile_user && current_user && @profile_user == current_user %>
<button id="btn-token" class="btn btn-default btn-block">My Access Token</button>
<% end %>
<% if @profile_user && current_user && @profile_user == current_user %>
<button data-toggle="modal" data-target="#socialModal" class="btn btn-default btn-block">Link Social media</button>

Solution

We can use the same class="btn btn-default btn-block" for all buttons rather than using two classes and for consistency in the design and can also center-align the Test Digest Mail button.

@SidharthBansal
Copy link
Member

@oorjitchowdhary we need to hide the Test Digest button from the production. We can use if Rails.env == production ....etc conditions here.
Let's take input from @gauravano for this.

@SidharthBansal
Copy link
Member

Thanks for raising the issue. It will be great if you can help the mentors with the pending prs and issues we are tackling. We already have a huge list of 500 issues this time.

@oorjitchowdhary
Copy link
Member Author

Yes.. I saw the huge amount of issues and PRs... I can help the mentors wherever I could be of assistance..

@oorjitchowdhary
Copy link
Member Author

Also, I will try to fix some of the issues which are raised by myself

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 12, 2018 via email

@SidharthBansal
Copy link
Member

huge amount of issues and PRs.

Ideal number of PRs which we want is less than 30. We want less than 300 issues at the earliest. So, a lot of stuff is pending. Issue and PR tracker has raised a lot. I tried my level best to solve as much as I can and review as much as I can.

@oorjitchowdhary
Copy link
Member Author

Yeah sure. Just you don't need to solve first timers only issues. You can try to solve your existing issues or anyone else's issues which you have claimed. Most of the mentors are busy right now, I can help you with those which I have raised. If you want you can work on them.

Ohk then.. Let's get to work

@oorjitchowdhary
Copy link
Member Author

huge amount of issues and PRs.

Ideal number of PRs which we want is less than 30. We want less than 300 issues at the earliest. So, a lot of stuff is pending. Issue and PR tracker has raised a lot. I tried my level best to solve as much as I can and review as much as I can.

Less than 30 and less than 300, which means we have a lot to cover

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 12, 2018 via email

@oorjitchowdhary
Copy link
Member Author

@SidharthBansal Can I make the changes which can be done now .. and we can add the conditional for the button in a commit.. is that okay?

@IshaGupta18
Copy link
Collaborator

Can I take up this issue if it hasn't been assigned already? I want to contribute for the first time. Thank you all!

@SidharthBansal
Copy link
Member

@oorjitchowdhary it will be great if you will create a first timer for @IshaGupta18 and help her out through the workflow.

@oorjitchowdhary
Copy link
Member Author

oorjitchowdhary commented Dec 12, 2018

Yes, we could do that.. so would we do the if Rails.env conditional in a new issue?
We were waiting for @gauravano's views

@SidharthBansal
Copy link
Member

Can I take up this issue if it hasn't been assigned already?

@IshaGupta18 this is not a first timer only issue. It is intermediate level issue. @oorjitchowdhary is working on it. @oorjitchowdhary will create a first timer issue for you and help you with it.
Thanks both of you

@oorjitchowdhary
Copy link
Member Author

@SidharthBansal I'll break this into two issues -- one for buttons change and one for the rails.env conditional.. I hope this works

@SidharthBansal
Copy link
Member

Great

@IshaGupta18
Copy link
Collaborator

Okay @SidharthBansal and @oorjitchowdhary. I really appreciate the help.

@oorjitchowdhary
Copy link
Member Author

@IshaGupta18 you can start working on #4285

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 12, 2018 via email

@oorjitchowdhary
Copy link
Member Author

#4285 and #4286
So, I'm closing this now

@uzorjchibuzor
Copy link
Contributor

I am interested in the test digest button, this issue is closed but I can still see the button production. If it’s available, I would like to take a stab at it

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

No branches or pull requests

4 participants