Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(39)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 7888: Adding variable column width setting

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 2 months ago by georgedorn
Modified:
16 years, 5 months ago
Reviewers:
Andi Albrecht, GvR
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Created: 17 years, 2 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M codereview/engine.py View 5 chunks +6 lines, -6 lines 1 comment Download
M codereview/models.py View 1 chunk +1 line, -0 lines 0 comments Download
M codereview/views.py View 11 chunks +31 lines, -7 lines 1 comment Download
D templates/context_select.html View 1 chunk +0 lines, -12 lines 0 comments Download
M templates/diff.html View 1 chunk +1 line, -1 line 0 comments Download
M templates/diff_navigation.html View 2 chunks +10 lines, -2 lines 1 comment Download
A + templates/view_details_select.html View 1 chunk +3 lines, -1 line 1 comment Download
Total messages: 3
|
georgedorn
There. This seems to work and was easier than expected.
17 years, 2 months ago (2008年10月29日 18:05:23 UTC) #1
There. This seems to work and was easier than expected.
Sign in to reply to this message.
georgedorn
http://codereview.appspot.com/7888/diff/1/6 File templates/diff_navigation.html (right): http://codereview.appspot.com/7888/diff/1/6#newcode10 Line 10: {{patch.prev.key.id}}{%if context and column_width%}?context={{context}}&column_width={{column_width}} There should be a ...
17 years, 2 months ago (2008年10月29日 20:01:54 UTC) #2
http://codereview.appspot.com/7888/diff/1/6
File templates/diff_navigation.html (right):
http://codereview.appspot.com/7888/diff/1/6#newcode10
Line 10: {{patch.prev.key.id}}{%if context and
column_width%}?context={{context}}&column_width={{column_width}}
There should be a better way to do this.
Sign in to reply to this message.
Andi Albrecht
I had some troubles applying the patch, because it tries to patch a non existent ...
17 years, 2 months ago (2008年11月04日 14:11:29 UTC) #3
I had some troubles applying the patch, because it tries to patch a non existent
templates/view_details_select.html. 
But in general it works great, we just have some (irrelevant) layout issues with
column headers and comments when column width is < 80. I think that isn't a
problem at all... ;-)
Some lines in the patch are > 79 chars, I didn't commented them.
http://codereview.appspot.com/7888/diff/1/4
File codereview/engine.py (right):
http://codereview.appspot.com/7888/diff/1/4#newcode186
Line 186: colwidth=DEFAULT_COLUMN_WIDTH, debug=False, context=DEFAULT_CONTEXT):
Line too long and missing blank line above "def RenderDiffTableRows..."
http://codereview.appspot.com/7888/diff/1/2
File codereview/views.py (right):
http://codereview.appspot.com/7888/diff/1/2#newcode289
Line 289: column_width = forms.IntegerField(label='Column Width', initial=80)
Maybe you should add max_value and min_value here (see
http://docs.djangoproject.com/en/dev/ref/forms/fields/#integerfield). Without it
it's no problem to set a negative value or some verrry high value (raises a
BadValue error) here (of course, this is catched in
_get_column_width_for_user()).
http://codereview.appspot.com/7888/diff/1/5
File templates/view_details_select.html (right):
http://codereview.appspot.com/7888/diff/1/5#newcode11
Line 11: <label for="id_column_width">Column Width:</label>
hm... this makes the box on the top very large... The more we add to this box
the more I feel unlucky with it. I think we should find a better place for those
options and links some day, but for now it's ok to leave them where they are.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /