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

タスクツイートリンク(簡易)つけた #95

Merged
merged 2 commits into from
May 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion app/assets/stylesheets/style.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,17 @@ select
font-size: 20px
+relative
top: 3px

.tweet
margin-top: 20px
text-align: center
a
i
font-size: 130%
color: rgba(white, .5)
+relative
top: 2px

.time
font-size: 10px
margin-top: 30px
Expand Down Expand Up @@ -290,7 +301,10 @@ select
color: white
.destroy > a
color: $pt-color

.tweet > a
color: $pt-color
i
color: rgba($pt-color, .5)

&.doing
.destroy > a
Expand Down Expand Up @@ -329,6 +343,10 @@ select
color: $pt-color
.destroy > a
color: white
.tweet > a
color: white
i
color: rgba(white, .5)

.form
width: 320px
Expand Down
4 changes: 4 additions & 0 deletions app/views/tasks/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
.form-header
= render ("tasks/statuses/#{@task.status}"), task: @task
= render 'form'
.tweet
= link_to "http://twitter.com/share?text=TODO: #{@task.title} [#{@task.point}pt] @ktra_app&url=https://ktra.herokuapp.com", target: '_blank' do
%i.fa.fa-twitter
Tweet this task
.time
%dl
%dt START
Expand Down