You can leave it in primary for two-three weeks, and then just rack to a bottling bucket, skipping the secondary (more properly called a "clearing vessel" or "bright tank").
The whole primary/secondary thing is based on old techniques and not really necessary for the best product.
Once the SG readings don't change after at least three days, the beer is safe to bottle. I like to wait a while so that any "stuff" still in suspension in the beer falls out so that there is less crud that ends up in the bottles. Two to three weeks after brewing is usually a good time to plan to bottle.